PageRenderTime 16ms CodeModel.GetById 11ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/board/evb64260/zuma_pbb_mbox.h

https://gitlab.com/vogoplayer-tools/uboot
C Header | 43 lines | 36 code | 7 blank | 0 comment | 0 complexity | 0e60d26f5988aa8d63e11b1fdcd341d6 MD5 | raw file
 1#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);