18b2f7e6a1
by Eduardo Horvath and Simon Burge of Wasabi Systems. IBM 4xx series CPU features: - New pmap and revised trap handler. - Support on-chip timers, PCI controller, UARTs - Framework for on-chip ethernet and watchdog timer. General PowerPC features: - Add in-kernel PPC floating point emulation - New in{,4}_cksum that is between 1.5 and 5 times faster than the old version depending on CPU type. General changes: - Kernel support for generic dbsym-style symbols.
27 lines
766 B
C
27 lines
766 B
C
#ifndef _IBM4XX_MAL405GP_H_
|
|
#define _IBM4XX_MAL405GP_H_
|
|
|
|
/* Memory Access Layer buffer descriptor */
|
|
struct mal_descriptor {
|
|
volatile u_int16_t md_stat_ctrl; /* Status/Control */
|
|
volatile u_int16_t md_data_len; /* Data Len (low 12 bits only) */
|
|
volatile u_int32_t md_data; /* Data pointer */
|
|
};
|
|
|
|
/* MAL transmit status/control definitions */
|
|
#define MAL_TX_READY 0x8000
|
|
#define MAL_TX_WRAP 0x4000
|
|
#define MAL_TX_CONTINUOUS_MODE 0x2000
|
|
#define MAL_TX_LAST 0x1000
|
|
#define MAL_TX_INTERRUPT 0x0400
|
|
|
|
/* MAL receive status/control definitions */
|
|
#define MAL_RX_EMPTY 0x8000
|
|
#define MAL_RX_WRAP 0x4000
|
|
#define MAL_RX_CONTINUOUS_MODE 0x2000
|
|
#define MAL_RX_LAST 0x1000
|
|
#define MAL_RX_FIRST 0x0800
|
|
#define MAL_RX_INTERRUPT 0x0400
|
|
|
|
#endif /* _IBM4XX_MAL405GP_H_ */
|