1 #ifndef _IBM4XX_MAL405GP_H_
2 #define	_IBM4XX_MAL405GP_H_
3 
4 /* Memory Access Layer buffer descriptor */
5 struct mal_descriptor {
6 	volatile u_int16_t md_stat_ctrl;	/* Status/Control */
7 	volatile u_int16_t md_data_len;		/* Data Len (low 12 bits only) */
8 	volatile u_int32_t md_data;		/* Data pointer */
9 };
10 
11 /* MAL transmit status/control definitions */
12 #define	MAL_TX_READY		0x8000
13 #define	MAL_TX_WRAP		0x4000
14 #define	MAL_TX_CONTINUOUS_MODE	0x2000
15 #define	MAL_TX_LAST		0x1000
16 #define	MAL_TX_INTERRUPT	0x0400
17 
18 /* MAL receive status/control definitions */
19 #define	MAL_RX_EMPTY		0x8000
20 #define	MAL_RX_WRAP		0x4000
21 #define	MAL_RX_CONTINUOUS_MODE	0x2000
22 #define	MAL_RX_LAST		0x1000
23 #define	MAL_RX_FIRST		0x0800
24 #define	MAL_RX_INTERRUPT	0x0400
25 
26 #endif /* _IBM4XX_MAL405GP_H_ */
27