15 #define PKT_INIT_IRQ 0x1 16 #define PKT_ERR_IRQ 0x2 17 #define PKT_RX_IRQ 0x4 18 #define WRAP_ERR_IRQ 0x8 20 #define SYNC_ERR_IRQ 0x20 22 #define TOL_ERR_IRQ 0x80 23 #define TICK_RX_ERR_IRQ 0x100 24 #define TICK_RX_WRAP_IRQ 0x200 25 #define TICK_RX_IRQ 0x400 26 #define TICK_TX_WRAP_IRQ 0x800 27 #define TICK_TX_IRQ 0x1000 31 volatile unsigned int config;
32 volatile unsigned int status;
34 volatile unsigned int unused0;
35 volatile unsigned int dla;
36 volatile unsigned int pid;
37 volatile unsigned int offset;
38 volatile unsigned int unused1;
39 volatile unsigned int pkt_ct;
40 volatile unsigned int pkt_ft;
41 volatile unsigned int pkt_pf_crc;
42 volatile unsigned int unused2;
43 volatile unsigned int etct;
44 volatile unsigned int etft;
45 volatile unsigned int etct_next;
46 volatile unsigned int etft_next;
47 volatile unsigned int unused3[8];
48 volatile unsigned int pimsr;
49 volatile unsigned int pimr;
50 volatile unsigned int pisr;
51 volatile unsigned int pir;
52 volatile unsigned int imr;
53 volatile unsigned int picr;
57 unsigned char sel_out;
59 unsigned char mapping;
60 unsigned char tolerance;
67 unsigned char pktsyncen;
68 unsigned char pktiniten;
69 unsigned char pktrxen;
72 unsigned char dla_mask;
84 unsigned int tick_tx_wrap;
86 unsigned int tick_rx_wrap;
87 unsigned int tick_rx_error;
95 unsigned int pkt_init;
103 typedef void (*spwcuc_isr_t)(
unsigned int pimr,
void *data);
109 extern void *spwcuc_open(
int minor);
112 extern void spwcuc_close(
void *spwcuc);
115 extern int spwcuc_reset(
void *spwcuc);
118 extern void spwcuc_int_enable(
void *spwcuc);
121 extern void spwcuc_int_disable(
void *spwcuc);
124 extern void spwcuc_clr_stats(
void *spwcuc);
129 extern void spwcuc_get_stats(
void *spwcuc,
struct spwcuc_stats *stats);
137 extern void spwcuc_int_register(
void *spwcuc, spwcuc_isr_t func,
void *data);
142 extern void spwcuc_config(
void *spwcuc,
struct spwcuc_cfg *cfg);
145 extern unsigned int spwcuc_get_et_coarse(
void *spwcuc);
148 extern unsigned int spwcuc_get_et_fine(
void *spwcuc);
151 extern unsigned long long spwcuc_get_et(
void *spwcuc);
154 extern unsigned int spwcuc_get_next_et_coarse(
void *spwcuc);
157 extern unsigned int spwcuc_get_next_et_fine(
void *spwcuc);
160 extern unsigned long long spwcuc_get_next_et(
void *spwcuc);
165 extern void spwcuc_force_et(
void *spwcuc,
unsigned long long time);
168 extern unsigned int spwcuc_get_tp_et_coarse(
void *spwcuc);
171 extern unsigned int spwcuc_get_tp_et_fine(
void *spwcuc);
174 extern unsigned long long spwcuc_get_tp_et(
void *spwcuc);
177 extern void spwcuc_clear_irqs(
void *spwcuc,
int irqs);
180 extern void spwcuc_enable_irqs(
void *spwcuc,
int irqs);
183 extern struct spwcuc_regs *spwcuc_get_regs(
void *spwcuc);
186 extern void spwcuc_register(
void);
Definition: deflate.c:115
Definition: intercom.c:74