deadbat-alternate.patch
[u-boot-openmoko/mini2440.git] / board / evb64260 / zuma_pbb_mbox.h
blobb4a4c0cf7e727fba6fcab7bfaf9c025675e8d535
1 #define IN_VALID 1
2 #define OUT_PENDING 2
4 enum {
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,
16 MBOXMSG_LAST
19 struct 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;
28 struct _zuma_mbox_dev {
29 pci_dev_t dev;
30 PBB_DMA_REG_MAP *sip;
31 struct zuma_mailbox_info mailbox;
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
42 extern struct _zuma_mbox_dev zuma_mbox_dev;
43 extern int zuma_mbox_init (void);