(5/6) bcm57xx: bcm4785 incomplete reboot
[openwrt.git] / target / linux / brcm-2.4 / files / arch / mips / bcm947xx / utils.h
1 #ifndef __bcm_utils_h
2 #define __bcm_utils_h
3
4 #define BCME_STRLEN 64 /* Max string length for BCM errors */
5 #define VALID_BCMERROR(e) ((e <= 0) && (e >= BCME_LAST))
6
7 /*
8 * error codes could be added but the defined ones shouldn't be changed/deleted
9 * these error codes are exposed to the user code
10 * when ever a new error code is added to this list
11 * please update errorstring table with the related error string and
12 * update osl files with os specific errorcode map
13 */
14
15 #define BCME_OK 0 /* Success */
16 #define BCME_ERROR -1 /* Error generic */
17 #define BCME_BADARG -2 /* Bad Argument */
18 #define BCME_BADOPTION -3 /* Bad option */
19 #define BCME_NOTUP -4 /* Not up */
20 #define BCME_NOTDOWN -5 /* Not down */
21 #define BCME_NOTAP -6 /* Not AP */
22 #define BCME_NOTSTA -7 /* Not STA */
23 #define BCME_BADKEYIDX -8 /* BAD Key Index */
24 #define BCME_RADIOOFF -9 /* Radio Off */
25 #define BCME_NOTBANDLOCKED -10 /* Not band locked */
26 #define BCME_NOCLK -11 /* No Clock */
27 #define BCME_BADRATESET -12 /* BAD Rate valueset */
28 #define BCME_BADBAND -13 /* BAD Band */
29 #define BCME_BUFTOOSHORT -14 /* Buffer too short */
30 #define BCME_BUFTOOLONG -15 /* Buffer too long */
31 #define BCME_BUSY -16 /* Busy */
32 #define BCME_NOTASSOCIATED -17 /* Not Associated */
33 #define BCME_BADSSIDLEN -18 /* Bad SSID len */
34 #define BCME_OUTOFRANGECHAN -19 /* Out of Range Channel */
35 #define BCME_BADCHAN -20 /* Bad Channel */
36 #define BCME_BADADDR -21 /* Bad Address */
37 #define BCME_NORESOURCE -22 /* Not Enough Resources */
38 #define BCME_UNSUPPORTED -23 /* Unsupported */
39 #define BCME_BADLEN -24 /* Bad length */
40 #define BCME_NOTREADY -25 /* Not Ready */
41 #define BCME_EPERM -26 /* Not Permitted */
42 #define BCME_NOMEM -27 /* No Memory */
43 #define BCME_ASSOCIATED -28 /* Associated */
44 #define BCME_RANGE -29 /* Not In Range */
45 #define BCME_NOTFOUND -30 /* Not Found */
46 #define BCME_WME_NOT_ENABLED -31 /* WME Not Enabled */
47 #define BCME_TSPEC_NOTFOUND -32 /* TSPEC Not Found */
48 #define BCME_ACM_NOTSUPPORTED -33 /* ACM Not Supported */
49 #define BCME_NOT_WME_ASSOCIATION -34 /* Not WME Association */
50 #define BCME_SDIO_ERROR -35 /* SDIO Bus Error */
51 #define BCME_DONGLE_DOWN -36 /* Dongle Not Accessible */
52 #define BCME_VERSION -37 /* Incorrect version */
53 #define BCME_LAST BCME_VERSION
54
55 /* buffer length for ethernet address from bcm_ether_ntoa() */
56 #define ETHER_ADDR_STR_LEN 18 /* 18-bytes of Ethernet address buffer length */
57
58 struct ether_addr {
59 unsigned char octet[6];
60 };
61
62 extern uint8 hndcrc8(uint8 *p, uint nbytes, uint8 crc);
63
64 #endif /* __bcm_utils_h */
65
This page took 0.044411 seconds and 5 git commands to generate.