wdenk | 0e08feb | 2002-04-02 13:22:45 +0000 | [diff] [blame] | 1 | #define IN_VALID 1 |
| 2 | #define OUT_PENDING 2 |
| 3 | |
| 4 | enum { |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 5 | ZUMA_MBOXMSG_DONE, |
| 6 | ZUMA_MBOXMSG_MACL, |
| 7 | ZUMA_MBOXMSG_MACH, |
| 8 | ZUMA_MBOXMSG_IP, |
| 9 | ZUMA_MBOXMSG_SLOT, |
| 10 | ZUMA_MBOXMSG_RESET, |
| 11 | ZUMA_MBOXMSG_BAUD, |
| 12 | ZUMA_MBOXMSG_START, |
| 13 | ZUMA_MBOXMSG_ENG_PRV_MACL, |
| 14 | ZUMA_MBOXMSG_ENG_PRV_MACH, |
wdenk | 0e08feb | 2002-04-02 13:22:45 +0000 | [diff] [blame] | 15 | |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 16 | MBOXMSG_LAST |
wdenk | 0e08feb | 2002-04-02 13:22:45 +0000 | [diff] [blame] | 17 | }; |
| 18 | |
| 19 | struct zuma_mailbox_info { |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 20 | unsigned char acc_mac[6]; |
| 21 | unsigned char prv_mac[6]; |
| 22 | unsigned int ip; |
| 23 | unsigned int slot_bac; |
| 24 | unsigned int console_baud; |
| 25 | unsigned int debug_baud; |
wdenk | 0e08feb | 2002-04-02 13:22:45 +0000 | [diff] [blame] | 26 | }; |
| 27 | |
| 28 | struct _zuma_mbox_dev { |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 29 | pci_dev_t dev; |
| 30 | PBB_DMA_REG_MAP *sip; |
| 31 | struct zuma_mailbox_info mailbox; |
wdenk | 0e08feb | 2002-04-02 13:22:45 +0000 | [diff] [blame] | 32 | }; |
| 33 | |
| 34 | #define zuma_prv_mac zuma_mbox_dev.mailbox.prv_mac |
| 35 | #define zuma_acc_mac zuma_mbox_dev.mailbox.acc_mac |
| 36 | #define zuma_ip zuma_mbox_dev.mailbox.ip |
| 37 | #define zuma_slot_bac zuma_mbox_dev.mailbox.slot_bac |
| 38 | #define zuma_console_baud zuma_mbox_dev.mailbox.console_baud |
| 39 | #define zuma_debug_baud zuma_mbox_dev.mailbox.debug_baud |
| 40 | |
| 41 | |
| 42 | extern struct _zuma_mbox_dev zuma_mbox_dev; |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 43 | extern int zuma_mbox_init (void); |