Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / powerpc / include / ibm4xx / mal405gp.h
blobcdf8c9b22d2d8446b7b9da6efc93bbb3f6164e5e
1 #ifndef _IBM4XX_MAL405GP_H_
2 #define _IBM4XX_MAL405GP_H_
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 };
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
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
26 #endif /* _IBM4XX_MAL405GP_H_ */