blob: b4a4c0cf7e727fba6fcab7bfaf9c025675e8d535 [file] [log] [blame]
wdenk0e08feb2002-04-02 13:22:45 +00001#define IN_VALID 1
2#define OUT_PENDING 2
3
4enum {
wdenke65527f2004-02-12 00:47:09 +00005 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,
wdenk0e08feb2002-04-02 13:22:45 +000015
wdenke65527f2004-02-12 00:47:09 +000016 MBOXMSG_LAST
wdenk0e08feb2002-04-02 13:22:45 +000017};
18
19struct zuma_mailbox_info {
wdenke65527f2004-02-12 00:47:09 +000020 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;
wdenk0e08feb2002-04-02 13:22:45 +000026};
27
28struct _zuma_mbox_dev {
wdenke65527f2004-02-12 00:47:09 +000029 pci_dev_t dev;
30 PBB_DMA_REG_MAP *sip;
31 struct zuma_mailbox_info mailbox;
wdenk0e08feb2002-04-02 13:22:45 +000032};
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
42extern struct _zuma_mbox_dev zuma_mbox_dev;
wdenke65527f2004-02-12 00:47:09 +000043extern int zuma_mbox_init (void);