blob: 0e80fcb0515ed18be155e8c789fc240790b35906 [file] [log] [blame]
wdenk0e08feb2002-04-02 13:22:45 +00001#define IN_VALID 1
2#define OUT_PENDING 2
3
4enum {
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,
15
16 MBOXMSG_LAST
17};
18
19struct zuma_mailbox_info {
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;
26};
27
28struct _zuma_mbox_dev {
29 pci_dev_t dev;
30 PBB_DMA_REG_MAP *sip;
31 struct zuma_mailbox_info mailbox;
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
42extern struct _zuma_mbox_dev zuma_mbox_dev;
43extern int zuma_mbox_init(void);