28#include <drvmgr/drvmgr.h>
35 volatile unsigned int ctrl;
36 volatile unsigned int oper;
37 volatile unsigned int cur_cmd;
38 volatile unsigned int imask;
39 volatile unsigned int ipend;
40 volatile unsigned int ipoint;
41 volatile unsigned int bit_reg;
42 volatile unsigned int ttag;
43 volatile unsigned int dpoint;
44 volatile unsigned int sw;
45 volatile unsigned int initcount;
46 volatile unsigned int mcpoint;
47 volatile unsigned int mdpoint;
48 volatile unsigned int mbc;
49 volatile unsigned int mfilta;
50 volatile unsigned int mfiltb;
51 volatile unsigned int rt_cmd_leg[16];
52 volatile unsigned int enhanced;
54 volatile unsigned int dummy[31];
56 volatile unsigned int w_ctrl;
57 volatile unsigned int w_irqctrl;
58 volatile unsigned int w_ahbaddr;
68 unsigned short data[32];
74 unsigned short data[32];
98 unsigned char rtaddr[2];
99 unsigned char subaddr[2];
102 unsigned short tsw[2];
103 unsigned short data[32];
108#define BC_RTRT 0x0002
109#define BC_BUSA 0x0004
111#define BC_SKIP 0x0040
112#define BC_BAME 0x8000
117#define BRM_ILLOP_IRQ 8
118#define BRM_BC_ILLCMD_IRQ 16
119#define BRM_EOL_IRQ 32
120#define BRM_RT_ILLCMD_IRQ 128
121#define BRM_IXEQ0_IRQ 256
122#define BRM_BDRCV_IRQ 512
123#define BRM_SUBAD_IRQ 1024
124#define BRM_MERR_IRQ 2048
125#define BRM_TAPF_IRQ 8192
126#define BRM_WRAPF_IRQ 16384
127#define BRM_DMAF_IRQ 32768
130#define BRM_SET_MODE 0
132#define BRM_SET_MSGTO 2
133#define BRM_SET_RT_ADDR 3
136#define BRM_TX_BLOCK 7
137#define BRM_RX_BLOCK 8
139#define BRM_DO_LIST 10
140#define BRM_LIST_DONE 11
142#define BRM_CLR_STATUS 12
143#define BRM_GET_STATUS 13
144#define BRM_SET_EVENTID 14
146#define GET_ERROR_DESCRIPTOR(event_in) (event_in>>16)
149#define BRM_MODE_BC 0x0
150#define BRM_MODE_RT 0x1
151#define BRM_MODE_BM 0x2
152#define BRM_MODE_BM_RT 0x3
154#define BRM_FREQ_12MHZ 0
155#define BRM_FREQ_16MHZ 1
156#define BRM_FREQ_20MHZ 2
157#define BRM_FREQ_24MHZ 3
158#define BRM_FREQ_MASK 0x3
160#define CLKDIV_MASK 0xf
162#define CLKSEL_MASK 0x7
164void b1553brm_register_drv(
void);
172extern unsigned short b1553brm_rt_cmd_legalize[16];
175void b1553brm_print(
int options);
178void b1553brm_print_dev(
struct drvmgr_dev *dev,
int options);
Definition: b1553brm.h:97
Definition: b1553brm.h:61
Definition: b1553brm.h:34
Definition: b1553brm.h:71