mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08:00
2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>
* clock/clock.c, console/config.c, console/console.c, console/debugio.c, console/i8042.c, console/ns16550cfg.c, console/ns16550cfg.h, console/vga.c, console/vga_p.h, console/z85c30cfg.c, console/z85c30cfg.h, include/bsp.h, include/nvram.h, include/pci.h, network/amd79c970.c, network/amd79c970.h, nvram/mk48t18.h, nvram/nvram.c, nvram/stk11c68.h, pci/pci.c, startup/bspstart.c, startup/genpvec.c, startup/spurious.c, startup/swap.c, timer/timer.c, tod/cmos.h, tod/tod.c, universe/universe.c: Convert to using c99 fixed size types.
This commit is contained in:
1 parent
3f71ac151b
commit
bad8092cbf
29 files changed
+595
-582
No files matched your search
@@ -1,3 +1,16 @@
|
||||
2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||
|
||||
* clock/clock.c, console/config.c, console/console.c,
|
||||
console/debugio.c, console/i8042.c, console/ns16550cfg.c,
|
||||
console/ns16550cfg.h, console/vga.c, console/vga_p.h,
|
||||
console/z85c30cfg.c, console/z85c30cfg.h, include/bsp.h,
|
||||
include/nvram.h, include/pci.h, network/amd79c970.c,
|
||||
network/amd79c970.h, nvram/mk48t18.h, nvram/nvram.c,
|
||||
nvram/stk11c68.h, pci/pci.c, startup/bspstart.c, startup/genpvec.c,
|
||||
startup/spurious.c, startup/swap.c, timer/timer.c, tod/cmos.h,
|
||||
tod/tod.c, universe/universe.c: Convert to using c99 fixed size
|
||||
types.
|
||||
|
||||
2004-02-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Reflect changes to bsp.am.
|
||||
|
||||
@@ -32,13 +32,13 @@
|
||||
* Clock ticks since initialization
|
||||
*/
|
||||
|
||||
volatile rtems_unsigned32 Clock_driver_ticks;
|
||||
volatile uint32_t Clock_driver_ticks;
|
||||
|
||||
/*
|
||||
* This is the value programmed into the count down timer.
|
||||
*/
|
||||
|
||||
rtems_unsigned32 Clock_Decrementer_value;
|
||||
uint32_t Clock_Decrementer_value;
|
||||
|
||||
rtems_isr_entry Old_ticker;
|
||||
|
||||
@@ -203,7 +203,7 @@ rtems_device_driver Clock_control(
|
||||
void *pargp
|
||||
)
|
||||
{
|
||||
rtems_unsigned32 isrlevel;
|
||||
uint32_t isrlevel;
|
||||
rtems_libio_ioctl_args_t *args = pargp;
|
||||
|
||||
if (args == 0)
|
||||
|
||||
@@ -279,10 +279,10 @@ typedef volatile struct _SP_WRITE_REGISTERS {
|
||||
|
||||
static boolean config_PMX1553_probe(int minor)
|
||||
{
|
||||
unsigned8 ucBusNumber, ucSlotNumber, ucChannel;
|
||||
unsigned8 ucIntLine;
|
||||
unsigned32 ulPortBase, ulMemBase, ulDeviceID;
|
||||
unsigned8 *pucSIO_cir, *pucUart_int_sr, *pucUartDevIntReg;
|
||||
uint8_t ucBusNumber, ucSlotNumber, ucChannel;
|
||||
uint8_t ucIntLine;
|
||||
uint32_t ulPortBase, ulMemBase, ulDeviceID;
|
||||
uint8_t *pucSIO_cir, *pucUart_int_sr, *pucUartDevIntReg;
|
||||
PSP_WRITE_REGISTERS pNS16550Write;
|
||||
|
||||
/*
|
||||
@@ -329,9 +329,9 @@ static boolean config_PMX1553_probe(int minor)
|
||||
PCI_CONFIG_BAR_2,
|
||||
&ulMemBase);
|
||||
|
||||
pucUartDevIntReg=(unsigned8 *)(PCI_MEM_BASE+ulMemBase);
|
||||
pucUart_int_sr=(unsigned8 *)(PCI_MEM_BASE+ulMemBase+0x10);
|
||||
pucSIO_cir=(unsigned8 *)(PCI_MEM_BASE+ulMemBase+0x18);
|
||||
pucUartDevIntReg=(uint8_t*)(PCI_MEM_BASE+ulMemBase);
|
||||
pucUart_int_sr=(uint8_t*)(PCI_MEM_BASE+ulMemBase+0x10);
|
||||
pucSIO_cir=(uint8_t*)(PCI_MEM_BASE+ulMemBase+0x18);
|
||||
|
||||
/*
|
||||
* Use ulIntVector field to select RS232/RS422
|
||||
@@ -440,19 +440,19 @@ static boolean config_PMX1553_probe(int minor)
|
||||
/*
|
||||
* Scale requested baud rate for 16 MHz clock
|
||||
*/
|
||||
(unsigned32)Console_Port_Tbl[minor].pDeviceParams*=7373;
|
||||
(unsigned32)Console_Port_Tbl[minor].pDeviceParams/=16000;
|
||||
(uint32_t)Console_Port_Tbl[minor].pDeviceParams*=7373;
|
||||
(uint32_t)Console_Port_Tbl[minor].pDeviceParams/=16000;
|
||||
#else
|
||||
/*
|
||||
* Scale requested baud rate for 22.1184 MHz clock
|
||||
*/
|
||||
(unsigned32)Console_Port_Tbl[minor].pDeviceParams/=3;
|
||||
(uint32_t)Console_Port_Tbl[minor].pDeviceParams/=3;
|
||||
#endif
|
||||
/*
|
||||
* In order to maintain maximum data rate accuracy, we will
|
||||
* apply a div 4 here rather than in hardware (using MCR bit 7).
|
||||
*/
|
||||
(unsigned32)Console_Port_Tbl[minor].pDeviceParams/=4;
|
||||
(uint32_t)Console_Port_Tbl[minor].pDeviceParams/=4;
|
||||
|
||||
return(TRUE);
|
||||
}
|
||||
|
||||
@@ -292,7 +292,7 @@ void DEBUG_puts(
|
||||
)
|
||||
{
|
||||
char *s;
|
||||
unsigned32 Irql;
|
||||
uint32_t Irql;
|
||||
|
||||
rtems_interrupt_disable(Irql);
|
||||
|
||||
@@ -322,11 +322,11 @@ void DEBUG_puts(
|
||||
*/
|
||||
void
|
||||
DEBUG_puth(
|
||||
unsigned32 ulHexNum
|
||||
uint32_t ulHexNum
|
||||
)
|
||||
{
|
||||
unsigned long i,d;
|
||||
unsigned32 Irql;
|
||||
uint32_t Irql;
|
||||
|
||||
rtems_interrupt_disable(Irql);
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ void DEBUG_puts(
|
||||
)
|
||||
{
|
||||
char *s;
|
||||
unsigned32 Irql;
|
||||
uint32_t Irql;
|
||||
|
||||
rtems_interrupt_disable(Irql);
|
||||
|
||||
@@ -89,11 +89,11 @@ void DEBUG_puts(
|
||||
*/
|
||||
|
||||
void DEBUG_puth(
|
||||
unsigned32 ulHexNum
|
||||
uint32_t ulHexNum
|
||||
)
|
||||
{
|
||||
unsigned long i,d;
|
||||
unsigned32 Irql;
|
||||
uint32_t Irql;
|
||||
void (*poll)(int minor, char cChar);
|
||||
|
||||
poll = Console_Port_Tbl[Console_Port_Minor].pDeviceFns->deviceWritePolled;
|
||||
|
||||
@@ -83,7 +83,7 @@ static void i8042_process(
|
||||
|
||||
static void i8042_scan_code(
|
||||
int minor,
|
||||
unsigned8 ucScan
|
||||
uint8_t ucScan
|
||||
);
|
||||
#endif
|
||||
|
||||
@@ -107,8 +107,8 @@ void i8042_polled_off(
|
||||
)
|
||||
{
|
||||
#if CONSOLE_USE_INTERRUPTS
|
||||
unsigned32 Irql;
|
||||
unsigned8 ucScan;
|
||||
uint32_t Irql;
|
||||
uint8_t ucScan;
|
||||
|
||||
/*
|
||||
* Make sure we have processed everything outstanding
|
||||
@@ -133,14 +133,14 @@ void i8042_polled_off(
|
||||
static rtems_status_code
|
||||
i8042_outbyte_raw(
|
||||
int minor,
|
||||
unsigned8 ucData
|
||||
uint8_t ucData
|
||||
)
|
||||
{
|
||||
unsigned32 i;
|
||||
unsigned8 Status;
|
||||
uint32_t i;
|
||||
uint8_t Status;
|
||||
|
||||
#if CONSOLE_USE_INTERRUPTS
|
||||
unsigned32 Irql;
|
||||
uint32_t Irql;
|
||||
|
||||
if(bInterruptsEnabled)
|
||||
{
|
||||
@@ -179,10 +179,10 @@ i8042_outbyte_raw(
|
||||
static rtems_status_code
|
||||
i8042_inbyte_polled(
|
||||
int minor,
|
||||
unsigned8 *pucData
|
||||
uint8_t *pucData
|
||||
)
|
||||
{
|
||||
unsigned8 Status;
|
||||
uint8_t Status;
|
||||
|
||||
inport_byte(Console_Port_Tbl[minor].ulCtrlPort1, Status);
|
||||
if(Status & KBD_OBF_MASK)
|
||||
@@ -200,7 +200,7 @@ i8042_inbyte_polled(
|
||||
static rtems_status_code
|
||||
i8042_inbyte_raw(
|
||||
int minor,
|
||||
unsigned8 *pucData
|
||||
uint8_t *pucData
|
||||
)
|
||||
{
|
||||
int i;
|
||||
@@ -249,11 +249,11 @@ i8042_inbyte_raw(
|
||||
static rtems_status_code
|
||||
i8042_outbyte_cmd_polled(
|
||||
int minor,
|
||||
unsigned8 ucCommand
|
||||
uint8_t ucCommand
|
||||
)
|
||||
{
|
||||
unsigned32 i;
|
||||
unsigned8 Status;
|
||||
uint32_t i;
|
||||
uint8_t Status;
|
||||
|
||||
/*
|
||||
* This routine may be called when no clock driver is available
|
||||
@@ -293,7 +293,7 @@ void EnqueueKbdChar(
|
||||
*/
|
||||
static void i8042_process_two_code(
|
||||
int minor,
|
||||
unsigned8 ucScan,
|
||||
uint8_t ucScan,
|
||||
boolean bMakenBreak
|
||||
)
|
||||
{
|
||||
@@ -416,7 +416,7 @@ static void i8042_process_two_code(
|
||||
}
|
||||
|
||||
static boolean i8042_process_qualifiers(
|
||||
unsigned8 ucScan,
|
||||
uint8_t ucScan,
|
||||
boolean bMakenBreak
|
||||
)
|
||||
{
|
||||
@@ -468,13 +468,13 @@ static boolean i8042_process_qualifiers(
|
||||
|
||||
static boolean i8042_process_top_row(
|
||||
int minor,
|
||||
unsigned8 ucScan
|
||||
uint8_t ucScan
|
||||
)
|
||||
{
|
||||
boolean bProcessed;
|
||||
char cASCIIFnCode;
|
||||
#if CONSOLE_USE_INTERRUPTS==0
|
||||
unsigned8 ucKeyboardAck;
|
||||
uint8_t ucKeyboardAck;
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -633,7 +633,7 @@ static boolean i8042_process_top_row(
|
||||
|
||||
static boolean i8042_process_keypad(
|
||||
int minor,
|
||||
unsigned8 ucScan
|
||||
uint8_t ucScan
|
||||
)
|
||||
{
|
||||
char cASCIICtrlCode;
|
||||
@@ -735,7 +735,7 @@ static boolean i8042_process_keypad(
|
||||
*/
|
||||
static void i8042_scan_code(
|
||||
int minor,
|
||||
unsigned8 ucScan
|
||||
uint8_t ucScan
|
||||
)
|
||||
{
|
||||
char cChar;
|
||||
@@ -870,8 +870,8 @@ static void i8042_scan_code(
|
||||
*/
|
||||
boolean i8042_probe(int minor)
|
||||
{
|
||||
unsigned8 ucKeyboardAck;
|
||||
unsigned8 ucKeyboardID1, ucKeyboardID2;
|
||||
uint8_t ucKeyboardAck;
|
||||
uint8_t ucKeyboardID1, ucKeyboardID2;
|
||||
|
||||
if(!vga_probe(minor))
|
||||
{
|
||||
@@ -920,7 +920,7 @@ boolean i8042_probe(int minor)
|
||||
|
||||
void i8042_init(int minor)
|
||||
{
|
||||
unsigned8 ucKeyboardAck;
|
||||
uint8_t ucKeyboardAck;
|
||||
|
||||
vga_init(minor);
|
||||
|
||||
@@ -953,7 +953,7 @@ int i8042_inbyte_nonblocking_polled(
|
||||
int minor
|
||||
)
|
||||
{
|
||||
unsigned8 ucScan;
|
||||
uint8_t ucScan;
|
||||
char ucData;
|
||||
|
||||
if(i8042_inbyte_polled(minor, &ucScan)==RTEMS_SUCCESSFUL)
|
||||
@@ -988,8 +988,8 @@ static void i8042_process(
|
||||
int minor
|
||||
)
|
||||
{
|
||||
unsigned8 Status;
|
||||
unsigned8 ucData;
|
||||
uint8_t Status;
|
||||
uint8_t ucData;
|
||||
|
||||
inport_byte(Console_Port_Tbl[minor].ulCtrlPort1, Status);
|
||||
|
||||
|
||||
@@ -28,9 +28,9 @@
|
||||
#include <rtems.h>
|
||||
#include <bsp.h>
|
||||
|
||||
unsigned8 Read_ns16550_register(
|
||||
unsigned32 ulCtrlPort,
|
||||
unsigned8 ucRegNum
|
||||
uint8_t Read_ns16550_register(
|
||||
uint32_t ulCtrlPort,
|
||||
uint8_t ucRegNum
|
||||
)
|
||||
{
|
||||
unsigned char *p = (unsigned char *)ulCtrlPort;
|
||||
@@ -41,9 +41,9 @@ unsigned8 Read_ns16550_register(
|
||||
}
|
||||
|
||||
void Write_ns16550_register(
|
||||
unsigned32 ulCtrlPort,
|
||||
unsigned8 ucRegNum,
|
||||
unsigned8 ucData
|
||||
uint32_t ulCtrlPort,
|
||||
uint8_t ucRegNum,
|
||||
uint8_t ucData
|
||||
)
|
||||
{
|
||||
unsigned char *p = (unsigned char *)ulCtrlPort;
|
||||
|
||||
@@ -36,15 +36,15 @@ extern "C" {
|
||||
* Board specific register access routines
|
||||
*/
|
||||
|
||||
unsigned8 Read_ns16550_register(
|
||||
unsigned32 ulCtrlPort,
|
||||
unsigned8 ucRegNum
|
||||
uint8_t Read_ns16550_register(
|
||||
uint32_t ulCtrlPort,
|
||||
uint8_t ucRegNum
|
||||
);
|
||||
|
||||
void Write_ns16550_register(
|
||||
unsigned32 ulCtrlPort,
|
||||
unsigned8 ucRegNum,
|
||||
unsigned8 ucData
|
||||
uint32_t ulCtrlPort,
|
||||
uint8_t ucRegNum,
|
||||
uint8_t ucData
|
||||
);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -64,13 +64,13 @@ extern volatile boolean bScrollLock;
|
||||
| Global Variables
|
||||
+--------------------------------------------------------------------------*/
|
||||
/* Physical address of start of video text memory. */
|
||||
static unsigned16 *videoRam = (unsigned16 *)VGA_FB;
|
||||
static uint16_t *videoRam = (uint16_t*)VGA_FB;
|
||||
/* Pointer for current output position in display. */
|
||||
static unsigned16 *videoRamPtr = (unsigned16 *)VGA_FB;
|
||||
static unsigned8 videoRows = VGA_NUM_ROWS; /* Number of rows in display. */
|
||||
static unsigned8 videoCols = VGA_NUM_COLS; /* Number of columns in display. */
|
||||
static unsigned8 cursRow = 0; /* Current cursor row. */
|
||||
static unsigned8 cursCol = 0; /* Current cursor column. */
|
||||
static uint16_t *videoRamPtr = (uint16_t*)VGA_FB;
|
||||
static uint8_t videoRows = VGA_NUM_ROWS; /* Number of rows in display. */
|
||||
static uint8_t videoCols = VGA_NUM_COLS; /* Number of columns in display. */
|
||||
static uint8_t cursRow = 0; /* Current cursor row. */
|
||||
static uint8_t cursCol = 0; /* Current cursor column. */
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------+
|
||||
@@ -81,7 +81,7 @@ static unsigned8 cursCol = 0; /* Current cursor column. */
|
||||
| Returns: Nothing.
|
||||
+--------------------------------------------------------------------------*/
|
||||
static inline void
|
||||
setHardwareCursorPos(unsigned16 videoCursor)
|
||||
setHardwareCursorPos(uint16_t videoCursor)
|
||||
{
|
||||
VGA_WRITE_CRTC(0x0e, (videoCursor >> 8) & 0xff);
|
||||
VGA_WRITE_CRTC(0x0f, videoCursor & 0xff);
|
||||
@@ -111,13 +111,13 @@ updateVideoRamPtr(void)
|
||||
| Returns: Nothing.
|
||||
+--------------------------------------------------------------------------*/
|
||||
static void
|
||||
scrollUp(unsigned8 lines)
|
||||
scrollUp(uint8_t lines)
|
||||
{
|
||||
/* Number of blank display cells on bottom of window. */
|
||||
unsigned16 blankCount;
|
||||
uint16_t blankCount;
|
||||
|
||||
/* Source and destination pointers for memory copy operations. */
|
||||
unsigned16 *ptrDst, *ptrSrc;
|
||||
uint16_t *ptrDst, *ptrSrc;
|
||||
|
||||
if(lines<videoRows) /* Move window's contents up. */
|
||||
{
|
||||
@@ -125,7 +125,7 @@ scrollUp(unsigned8 lines)
|
||||
* Number of non-blank cells on upper part
|
||||
* of display (total - blank).
|
||||
*/
|
||||
unsigned16 nonBlankCount;
|
||||
uint16_t nonBlankCount;
|
||||
|
||||
blankCount = lines * videoCols;
|
||||
nonBlankCount = DISPLAY_CELL_COUNT - blankCount;
|
||||
@@ -336,7 +336,7 @@ int vga_write_support(
|
||||
|
||||
boolean vga_probe(int minor)
|
||||
{
|
||||
unsigned8 ucMiscIn;
|
||||
uint8_t ucMiscIn;
|
||||
|
||||
/*
|
||||
* Check for presence of VGA adaptor
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define VGA_FB ((unsigned32)PCI_MEM_BASE+0xb8000)
|
||||
#define VGA_FB ((uint32_t)PCI_MEM_BASE+0xb8000)
|
||||
#define VGA_NUM_ROWS 25
|
||||
#define VGA_NUM_COLS 80
|
||||
|
||||
@@ -39,7 +39,7 @@ extern "C" {
|
||||
outport_byte(0x3cf, val)
|
||||
#define VGA_WRITE_ATT(reg, val) \
|
||||
{ \
|
||||
volatile unsigned8 ucDummy; \
|
||||
volatile uint8_t ucDummy; \
|
||||
inport_byte(0x3da, ucDummy); \
|
||||
outport_byte(0x3c0, reg); \
|
||||
outport_byte(0x3c0, val); \
|
||||
|
||||
@@ -34,12 +34,12 @@
|
||||
* Read a Z85c30 register
|
||||
*/
|
||||
|
||||
unsigned8 Read_85c30_register(
|
||||
unsigned32 ulCtrlPort,
|
||||
unsigned8 ucRegNum
|
||||
uint8_t Read_85c30_register(
|
||||
uint32_t ulCtrlPort,
|
||||
uint8_t ucRegNum
|
||||
)
|
||||
{
|
||||
unsigned8 ucData;
|
||||
uint8_t ucData;
|
||||
|
||||
outport_byte(ulCtrlPort, ucRegNum);
|
||||
inport_byte(ulCtrlPort, ucData);
|
||||
@@ -53,9 +53,9 @@ unsigned8 Read_85c30_register(
|
||||
*/
|
||||
|
||||
void Write_85c30_register(
|
||||
unsigned32 ulCtrlPort,
|
||||
unsigned8 ucRegNum,
|
||||
unsigned8 ucData
|
||||
uint32_t ulCtrlPort,
|
||||
uint8_t ucRegNum,
|
||||
uint8_t ucData
|
||||
)
|
||||
{
|
||||
if(ucRegNum) {
|
||||
@@ -70,11 +70,11 @@ void Write_85c30_register(
|
||||
* Read a Z85c30 data register
|
||||
*/
|
||||
|
||||
unsigned8 Read_85c30_data(
|
||||
unsigned32 ulDataPort
|
||||
uint8_t Read_85c30_data(
|
||||
uint32_t ulDataPort
|
||||
)
|
||||
{
|
||||
unsigned8 ucData;
|
||||
uint8_t ucData;
|
||||
|
||||
inport_byte(ulDataPort, ucData);
|
||||
return ucData;
|
||||
@@ -87,8 +87,8 @@ unsigned8 Read_85c30_data(
|
||||
*/
|
||||
|
||||
void Write_85c30_data(
|
||||
unsigned32 ulDataPort,
|
||||
unsigned8 ucData
|
||||
uint32_t ulDataPort,
|
||||
uint8_t ucData
|
||||
)
|
||||
{
|
||||
outport_byte(ulDataPort, ucData);
|
||||
|
||||
@@ -36,24 +36,24 @@ extern "C" {
|
||||
* Board specific register access routines
|
||||
*/
|
||||
|
||||
unsigned8 Read_85c30_register(
|
||||
unsigned32 ulCtrlPort,
|
||||
unsigned8 ucRegNum
|
||||
uint8_t Read_85c30_register(
|
||||
uint32_t ulCtrlPort,
|
||||
uint8_t ucRegNum
|
||||
);
|
||||
|
||||
void Write_85c30_register(
|
||||
unsigned32 ulCtrlPort,
|
||||
unsigned8 ucRegNum,
|
||||
unsigned8 ucData
|
||||
uint32_t ulCtrlPort,
|
||||
uint8_t ucRegNum,
|
||||
uint8_t ucData
|
||||
);
|
||||
|
||||
unsigned8 Read_85c30_data(
|
||||
unsigned32 ulDataPort
|
||||
uint8_t Read_85c30_data(
|
||||
uint32_t ulDataPort
|
||||
);
|
||||
|
||||
void Write_85c30_data(
|
||||
unsigned32 ulDataPort,
|
||||
unsigned8 ucData
|
||||
uint32_t ulDataPort,
|
||||
uint8_t ucData
|
||||
);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -237,68 +237,68 @@ extern void Dis_Ext_Interrupt(int level);
|
||||
* As ports are all little endian we will perform swaps here on 16 and 32
|
||||
* bit transfers
|
||||
*/
|
||||
extern unsigned16 Swap16(unsigned16 usVal);
|
||||
extern unsigned32 Swap32(unsigned32 ulVal);
|
||||
extern uint16_t Swap16(uint16_t usVal);
|
||||
extern uint32_t Swap32(uint32_t ulVal);
|
||||
|
||||
#define outport_byte(port, val) \
|
||||
EIEIO; \
|
||||
*(volatile unsigned8 *)(PCI_IO_BASE+ \
|
||||
*(volatile uint8_t*)(PCI_IO_BASE+ \
|
||||
(unsigned long)(port))=(val)
|
||||
|
||||
#define outport_16(port, val) \
|
||||
EIEIO; \
|
||||
*(volatile unsigned16 *)(PCI_IO_BASE+ \
|
||||
*(volatile uint16_t*)(PCI_IO_BASE+ \
|
||||
(unsigned long)(port))=Swap16(val)
|
||||
|
||||
#define outport_32(port, val) \
|
||||
EIEIO; \
|
||||
*(volatile unsigned32 *)(PCI_IO_BASE+ \
|
||||
*(volatile uint32_t*)(PCI_IO_BASE+ \
|
||||
(unsigned long)(port))=Swap32(val)
|
||||
|
||||
#define inport_byte(port, val) \
|
||||
EIEIO; \
|
||||
(val)=*(volatile unsigned8 *)(PCI_IO_BASE+ \
|
||||
(val)=*(volatile uint8_t*)(PCI_IO_BASE+ \
|
||||
(unsigned long)(port))
|
||||
|
||||
#define inport_16(port, val) \
|
||||
EIEIO; \
|
||||
(val)=Swap16(*(volatile unsigned16 *)(PCI_IO_BASE+ \
|
||||
(val)=Swap16(*(volatile uint16_t*)(PCI_IO_BASE+ \
|
||||
(unsigned long)(port)))
|
||||
|
||||
#define inport_32(port, val) \
|
||||
EIEIO; \
|
||||
(val)=Swap32(*(volatile unsigned32 *)(PCI_IO_BASE+ \
|
||||
(val)=Swap32(*(volatile uint32_t*)(PCI_IO_BASE+ \
|
||||
(unsigned long)(port)))
|
||||
|
||||
/*
|
||||
* System Planar Board Registers
|
||||
*/
|
||||
typedef volatile struct _PLANARREGISTERS{
|
||||
unsigned8 Reserved0[0x803]; /* Offset 0x000 */
|
||||
unsigned8 SimmId; /* Offset 0x803 */
|
||||
unsigned8 SimmPresent; /* Offset 0x804 */
|
||||
unsigned8 Reserved1[3];
|
||||
unsigned8 HardfileLight; /* Offset 0x808 */
|
||||
unsigned8 Reserved2[3];
|
||||
unsigned8 EquipmentPresent1; /* Offset 0x80C */
|
||||
unsigned8 Reserved3;
|
||||
unsigned8 EquipmentPresent2; /* Offset 0x80e */
|
||||
unsigned8 Reserved4;
|
||||
unsigned8 PasswordProtect1; /* Offset 0x810 */
|
||||
unsigned8 Reserved5;
|
||||
unsigned8 PasswordProtect2; /* Offset 0x812 */
|
||||
unsigned8 Reserved6;
|
||||
unsigned8 L2Flush; /* Offset 0x814 */
|
||||
unsigned8 Reserved7[3];
|
||||
unsigned8 Keylock; /* Offset 0x818 */
|
||||
unsigned8 Reserved8[0x3c];
|
||||
unsigned8 BoardRevision; /* Offset 0x854 */
|
||||
unsigned8 Reserved9[0xf];
|
||||
unsigned8 BoardID; /* Offset 0x864 */
|
||||
unsigned8 Reserved10;
|
||||
unsigned8 MotherboardMemoryType; /* Offset 0x866 */
|
||||
unsigned8 Reserved11;
|
||||
unsigned8 MezzanineMemoryType; /* Offset 0x868 */
|
||||
uint8_t Reserved0[0x803]; /* Offset 0x000 */
|
||||
uint8_t SimmId; /* Offset 0x803 */
|
||||
uint8_t SimmPresent; /* Offset 0x804 */
|
||||
uint8_t Reserved1[3];
|
||||
uint8_t HardfileLight; /* Offset 0x808 */
|
||||
uint8_t Reserved2[3];
|
||||
uint8_t EquipmentPresent1; /* Offset 0x80C */
|
||||
uint8_t Reserved3;
|
||||
uint8_t EquipmentPresent2; /* Offset 0x80e */
|
||||
uint8_t Reserved4;
|
||||
uint8_t PasswordProtect1; /* Offset 0x810 */
|
||||
uint8_t Reserved5;
|
||||
uint8_t PasswordProtect2; /* Offset 0x812 */
|
||||
uint8_t Reserved6;
|
||||
uint8_t L2Flush; /* Offset 0x814 */
|
||||
uint8_t Reserved7[3];
|
||||
uint8_t Keylock; /* Offset 0x818 */
|
||||
uint8_t Reserved8[0x3c];
|
||||
uint8_t BoardRevision; /* Offset 0x854 */
|
||||
uint8_t Reserved9[0xf];
|
||||
uint8_t BoardID; /* Offset 0x864 */
|
||||
uint8_t Reserved10;
|
||||
uint8_t MotherboardMemoryType; /* Offset 0x866 */
|
||||
uint8_t Reserved11;
|
||||
uint8_t MezzanineMemoryType; /* Offset 0x868 */
|
||||
} PLANARREGISTERS, *PPLANARREGISTERS;
|
||||
|
||||
extern unsigned char ucSystemType;
|
||||
@@ -378,20 +378,20 @@ void InitializeNvRAM(void);
|
||||
|
||||
#define Cause_tm27_intr() \
|
||||
do { \
|
||||
unsigned32 _clicks = 8; \
|
||||
uint32_t _clicks = 8; \
|
||||
asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
|
||||
} while (0)
|
||||
|
||||
|
||||
#define Clear_tm27_intr() \
|
||||
do { \
|
||||
unsigned32 _clicks = 0xffffffff; \
|
||||
uint32_t _clicks = 0xffffffff; \
|
||||
asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
|
||||
} while (0)
|
||||
|
||||
#define Lower_tm27_intr() \
|
||||
do { \
|
||||
unsigned32 _msr = 0; \
|
||||
uint32_t _msr = 0; \
|
||||
_ISR_Set_level( 0 ); \
|
||||
asm volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
|
||||
_msr |= 0x8002; \
|
||||
@@ -455,7 +455,7 @@ void initialize_external_exception_vector();
|
||||
* console.c
|
||||
*/
|
||||
void DEBUG_puts( char *string );
|
||||
void DEBUG_puth( unsigned32 ulHexNum );
|
||||
void DEBUG_puth( uint32_t ulHexNum );
|
||||
|
||||
void BSP_fatal_return( void );
|
||||
|
||||
@@ -463,7 +463,7 @@ extern rtems_configuration_table BSP_Configuration; /* owned by BSP */
|
||||
|
||||
extern rtems_cpu_table Cpu_table; /* owned by BSP */
|
||||
|
||||
extern unsigned32 bsp_isr_level;
|
||||
extern uint32_t bsp_isr_level;
|
||||
|
||||
#endif /* ASM */
|
||||
|
||||
|
||||
@@ -33,20 +33,20 @@ void InitializeNvRAM(void);
|
||||
/*
|
||||
* These routines access data in the NvRAM's OS area
|
||||
*/
|
||||
extern rtems_status_code ReadNvRAM8(unsigned32 ulOffset, unsigned8 *pucData);
|
||||
extern rtems_status_code WriteNvRAM8(unsigned32 ulOffset, unsigned8 ucValue);
|
||||
extern rtems_status_code ReadNvRAM16(unsigned32 ulOffset, unsigned16 *pusData);
|
||||
extern rtems_status_code WriteNvRAM16(unsigned32 ulOffset, unsigned16 usValue);
|
||||
extern rtems_status_code ReadNvRAM32(unsigned32 ulOffset, unsigned32 *pulData);
|
||||
extern rtems_status_code WriteNvRAM32(unsigned32 ulOffset, unsigned32 ulValue);
|
||||
extern rtems_status_code ReadNvRAM8(uint32_t ulOffset, uint8_t *pucData);
|
||||
extern rtems_status_code WriteNvRAM8(uint32_t ulOffset, uint8_t ucValue);
|
||||
extern rtems_status_code ReadNvRAM16(uint32_t ulOffset, uint16_t *pusData);
|
||||
extern rtems_status_code WriteNvRAM16(uint32_t ulOffset, uint16_t usValue);
|
||||
extern rtems_status_code ReadNvRAM32(uint32_t ulOffset, uint32_t *pulData);
|
||||
extern rtems_status_code WriteNvRAM32(uint32_t ulOffset, uint32_t ulValue);
|
||||
rtems_status_code ReadNvRAMBlock(
|
||||
unsigned32 ulOffset, unsigned8 *pucData, unsigned32 length);
|
||||
uint32_t ulOffset, uint8_t *pucData, uint32_t length);
|
||||
rtems_status_code WriteNvRAMBlock(
|
||||
unsigned32 ulOffset, unsigned8 *ucValue, unsigned32 length);
|
||||
uint32_t ulOffset, uint8_t *ucValue, uint32_t length);
|
||||
/*
|
||||
* This routine returns the size of the NvRAM
|
||||
*/
|
||||
extern unsigned32 SizeNvRAM();
|
||||
extern uint32_t SizeNvRAM();
|
||||
|
||||
/*
|
||||
* This routine commits changes to the NvRAM
|
||||
|
||||
@@ -267,56 +267,56 @@
|
||||
* PCI access functions
|
||||
*/
|
||||
extern rtems_status_code PCIConfigWrite8(
|
||||
unsigned8 ucBusNumber,
|
||||
unsigned8 ucSlotNumber,
|
||||
unsigned8 ucFunctionNumber,
|
||||
unsigned8 ucOffset,
|
||||
unsigned8 ucValue
|
||||
uint8_t ucBusNumber,
|
||||
uint8_t ucSlotNumber,
|
||||
uint8_t ucFunctionNumber,
|
||||
uint8_t ucOffset,
|
||||
uint8_t ucValue
|
||||
);
|
||||
|
||||
extern rtems_status_code PCIConfigWrite16(
|
||||
unsigned8 ucBusNumber,
|
||||
unsigned8 ucSlotNumber,
|
||||
unsigned8 ucFunctionNumber,
|
||||
unsigned8 ucOffset,
|
||||
unsigned16 usValue
|
||||
uint8_t ucBusNumber,
|
||||
uint8_t ucSlotNumber,
|
||||
uint8_t ucFunctionNumber,
|
||||
uint8_t ucOffset,
|
||||
uint16_t usValue
|
||||
);
|
||||
|
||||
extern rtems_status_code PCIConfigWrite32(
|
||||
unsigned8 ucBusNumber,
|
||||
unsigned8 ucSlotNumber,
|
||||
unsigned8 ucFunctionNumber,
|
||||
unsigned8 ucOffset,
|
||||
unsigned32 ulValue
|
||||
uint8_t ucBusNumber,
|
||||
uint8_t ucSlotNumber,
|
||||
uint8_t ucFunctionNumber,
|
||||
uint8_t ucOffset,
|
||||
uint32_t ulValue
|
||||
);
|
||||
|
||||
extern rtems_status_code PCIConfigRead8(
|
||||
unsigned8 ucBusNumber,
|
||||
unsigned8 ucSlotNumber,
|
||||
unsigned8 ucFunctionNumber,
|
||||
unsigned8 ucOffset,
|
||||
unsigned8 *pucValue
|
||||
uint8_t ucBusNumber,
|
||||
uint8_t ucSlotNumber,
|
||||
uint8_t ucFunctionNumber,
|
||||
uint8_t ucOffset,
|
||||
uint8_t *pucValue
|
||||
);
|
||||
|
||||
extern rtems_status_code PCIConfigRead16(
|
||||
unsigned8 ucBusNumber,
|
||||
unsigned8 ucSlotNumber,
|
||||
unsigned8 ucFunctionNumber,
|
||||
unsigned8 ucOffset,
|
||||
unsigned16 *pusValue
|
||||
uint8_t ucBusNumber,
|
||||
uint8_t ucSlotNumber,
|
||||
uint8_t ucFunctionNumber,
|
||||
uint8_t ucOffset,
|
||||
uint16_t *pusValue
|
||||
);
|
||||
|
||||
extern rtems_status_code PCIConfigRead32(
|
||||
unsigned8 ucBusNumber,
|
||||
unsigned8 ucSlotNumber,
|
||||
unsigned8 ucFunctionNumber,
|
||||
unsigned8 ucOffset,
|
||||
unsigned32 *pulValue
|
||||
uint8_t ucBusNumber,
|
||||
uint8_t ucSlotNumber,
|
||||
uint8_t ucFunctionNumber,
|
||||
uint8_t ucOffset,
|
||||
uint32_t *pulValue
|
||||
);
|
||||
|
||||
/*
|
||||
* Return the number of PCI busses in the system
|
||||
*/
|
||||
extern unsigned8 BusCountPCI();
|
||||
extern uint8_t BusCountPCI();
|
||||
|
||||
#endif /* _PCI_H_ */
|
||||
@@ -100,7 +100,7 @@ typedef struct amd79c970Context {
|
||||
tmde_t txBdBase[TX_RING_SIZE];
|
||||
initblk_t initBlk;
|
||||
pc_net_t *pPCNet;
|
||||
unsigned32 ulIntVector;
|
||||
uint32_t ulIntVector;
|
||||
struct mbuf **rxMbuf;
|
||||
struct mbuf **txMbuf;
|
||||
int rxBdCount;
|
||||
@@ -142,7 +142,7 @@ static amd79c970Context_t *pAmd79c970Context[NPCNETDRIVER];
|
||||
static rtems_isr
|
||||
amd79c970_isr (rtems_vector_number v)
|
||||
{
|
||||
unsigned32 ulCSR0, ulCSR4, ulCSR5;
|
||||
uint32_t ulCSR0, ulCSR4, ulCSR5;
|
||||
amd79c970Context_t *dp;
|
||||
int i;
|
||||
|
||||
@@ -220,15 +220,15 @@ amd79c970_initialize_hardware (int instance, int broadcastFlag)
|
||||
amd79c970Context_t *dp;
|
||||
struct mbuf *bp;
|
||||
int i;
|
||||
unsigned8 ucPCIBusCount;
|
||||
unsigned8 ucBusNumber;
|
||||
unsigned8 ucSlotNumber;
|
||||
unsigned32 ulDeviceID;
|
||||
unsigned32 ulBAR0;
|
||||
unsigned8 ucIntVector;
|
||||
unsigned32 ulInitClkPCIAddr;
|
||||
unsigned32 ulAPROM;
|
||||
unsigned32 ulCSR0;
|
||||
uint8_t ucPCIBusCount;
|
||||
uint8_t ucBusNumber;
|
||||
uint8_t ucSlotNumber;
|
||||
uint32_t ulDeviceID;
|
||||
uint32_t ulBAR0;
|
||||
uint8_t ucIntVector;
|
||||
uint32_t ulInitClkPCIAddr;
|
||||
uint32_t ulAPROM;
|
||||
uint32_t ulCSR0;
|
||||
|
||||
ucPCIBusCount=BusCountPCI();
|
||||
|
||||
@@ -334,7 +334,7 @@ amd79c970_initialize_hardware (int instance, int broadcastFlag)
|
||||
dp->rxMbuf[i]=bp=ambufw (RBUF_SIZE);
|
||||
bp->data += sizeof (struct iface *);
|
||||
dp->rxBdBase[i].rmde_addr=
|
||||
Swap32((unsigned32)bp->data+PCI_SYS_MEM_BASE);
|
||||
Swap32((uint32_t)bp->data+PCI_SYS_MEM_BASE);
|
||||
dp->rxBdBase[i].rmde_bcnt=
|
||||
Swap16(-(bp->size-sizeof (struct iface *)));
|
||||
dp->rxBdBase[i].rmde_flags=Swap16(RFLG_OWN);
|
||||
@@ -369,7 +369,7 @@ amd79c970_initialize_hardware (int instance, int broadcastFlag)
|
||||
/*
|
||||
* Set the receive descriptor ring address
|
||||
*/
|
||||
dp->initBlk.ib_rdra=Swap32((unsigned32)&dp->rxBdBase[0]+
|
||||
dp->initBlk.ib_rdra=Swap32((uint32_t)&dp->rxBdBase[0]+
|
||||
PCI_SYS_MEM_BASE);
|
||||
|
||||
/*
|
||||
@@ -379,7 +379,7 @@ amd79c970_initialize_hardware (int instance, int broadcastFlag)
|
||||
/*
|
||||
* Set the tranmit descriptor ring address
|
||||
*/
|
||||
dp->initBlk.ib_tdra=Swap32((unsigned32)&dp->txBdBase[0]+
|
||||
dp->initBlk.ib_tdra=Swap32((uint32_t)&dp->txBdBase[0]+
|
||||
PCI_SYS_MEM_BASE);
|
||||
|
||||
for(i=0;i<6;i++)
|
||||
@@ -403,7 +403,7 @@ amd79c970_initialize_hardware (int instance, int broadcastFlag)
|
||||
|
||||
WR_CSR32(dp, CSR5, 0);
|
||||
|
||||
ulInitClkPCIAddr=(unsigned32)&dp->initBlk+PCI_SYS_MEM_BASE;
|
||||
ulInitClkPCIAddr=(uint32_t)&dp->initBlk+PCI_SYS_MEM_BASE;
|
||||
/*
|
||||
* CSR2 must contain the high order 16 bits of the first word in
|
||||
* the initialization block
|
||||
@@ -461,8 +461,8 @@ amd79c970_initialize_hardware (int instance, int broadcastFlag)
|
||||
static void
|
||||
amd79c970_retire_tx_bd (amd79c970Context_t *dp)
|
||||
{
|
||||
unsigned16 status;
|
||||
unsigned32 error;
|
||||
uint16_t status;
|
||||
uint32_t error;
|
||||
int i;
|
||||
int nRetired;
|
||||
|
||||
@@ -525,7 +525,7 @@ amd79c970_raw (struct iface *iface, struct mbuf **bpp)
|
||||
amd79c970Context_t *dp;
|
||||
struct mbuf *bp;
|
||||
tmde_t *firstTxBd, *txBd;
|
||||
unsigned16 status;
|
||||
uint16_t status;
|
||||
int nAdded;
|
||||
|
||||
dp = pAmd79c970Context[iface->dev];
|
||||
@@ -607,7 +607,7 @@ amd79c970_raw (struct iface *iface, struct mbuf **bpp)
|
||||
/*
|
||||
* Fill in the buffer descriptor
|
||||
*/
|
||||
txBd->tmde_addr=Swap32((unsigned32)bp->data+PCI_SYS_MEM_BASE);
|
||||
txBd->tmde_addr=Swap32((uint32_t)bp->data+PCI_SYS_MEM_BASE);
|
||||
txBd->tmde_bcnt=Swap16(-bp->cnt);
|
||||
dp->txMbuf[dp->txBdHead] = bp;
|
||||
|
||||
@@ -676,7 +676,7 @@ amd79c970_rx (int dev, void *p1, void *p2)
|
||||
struct iface *iface=(struct iface *)p1;
|
||||
amd79c970Context_t *dp=(amd79c970Context_t *)p2;
|
||||
struct mbuf *bp;
|
||||
rtems_unsigned16 status;
|
||||
uint16_t status;
|
||||
rmde_t *rxBd;
|
||||
int rxBdIndex;
|
||||
int continuousCount;
|
||||
@@ -770,7 +770,7 @@ amd79c970_rx (int dev, void *p1, void *p2)
|
||||
dp->rxMbuf[rxBdIndex]=bp=ambufw (RBUF_SIZE);
|
||||
bp->data += sizeof (struct iface *);
|
||||
rxBd->rmde_addr=Swap32(
|
||||
(unsigned32)bp->data+PCI_SYS_MEM_BASE);
|
||||
(uint32_t)bp->data+PCI_SYS_MEM_BASE);
|
||||
rxBd->rmde_bcnt=Swap16(
|
||||
-(bp->size-sizeof (struct iface *)));
|
||||
}
|
||||
@@ -797,7 +797,7 @@ static int
|
||||
amd79c970_stop (struct iface *iface)
|
||||
{
|
||||
amd79c970Context_t *dp;
|
||||
unsigned32 ulCSR0;
|
||||
uint32_t ulCSR0;
|
||||
int i;
|
||||
|
||||
dp=pAmd79c970Context[iface->dev];
|
||||
@@ -913,7 +913,7 @@ rtems_ka9q_driver_attach (int argc, char *argv[], void *p)
|
||||
* Note that this structure must be aligned to a 16 byte boundary
|
||||
*/
|
||||
pAmd79c970Context[i]=(amd79c970Context_t *)
|
||||
(((unsigned32)callocw(1,
|
||||
(((uint32_t)callocw(1,
|
||||
sizeof(amd79c970Context_t)+16)+16) & ~15);
|
||||
dp=pAmd79c970Context[i];
|
||||
|
||||
|
||||
@@ -25,18 +25,18 @@ typedef volatile struct pc_net
|
||||
union
|
||||
{
|
||||
struct {
|
||||
unsigned16 aprom[8]; /* 0x00 */
|
||||
unsigned16 rdp; /* 0x10 */
|
||||
unsigned16 rap; /* 0x14 */
|
||||
unsigned16 reset; /* 0x18 */
|
||||
unsigned16 bdp; /* 0x1C */
|
||||
uint16_t aprom[8]; /* 0x00 */
|
||||
uint16_t rdp; /* 0x10 */
|
||||
uint16_t rap; /* 0x14 */
|
||||
uint16_t reset; /* 0x18 */
|
||||
uint16_t bdp; /* 0x1C */
|
||||
} wio;
|
||||
struct {
|
||||
unsigned32 aprom[4]; /* 0x00 */
|
||||
unsigned32 rdp; /* 0x10 */
|
||||
unsigned32 rap; /* 0x12 */
|
||||
unsigned32 reset; /* 0x14 */
|
||||
unsigned32 bdp; /* 0x16 */
|
||||
uint32_t aprom[4]; /* 0x00 */
|
||||
uint32_t rdp; /* 0x10 */
|
||||
uint32_t rap; /* 0x12 */
|
||||
uint32_t reset; /* 0x14 */
|
||||
uint32_t bdp; /* 0x16 */
|
||||
} dwio;
|
||||
} u;
|
||||
} pc_net_t;
|
||||
@@ -48,24 +48,24 @@ typedef volatile struct pc_net
|
||||
#define EEPROM_HEAD_SIZE 36
|
||||
|
||||
typedef struct pc_net_eeprom {
|
||||
unsigned8 EthNumber[6];
|
||||
unsigned16 Reserved1; /* Must be 0x0000 */
|
||||
unsigned16 Reserved2; /* Must be 0x1000 */
|
||||
unsigned16 User1;
|
||||
unsigned16 checksum;
|
||||
unsigned16 Reserved3; /* Must be 0x5757 */
|
||||
unsigned16 bcr16;
|
||||
unsigned16 bcr17;
|
||||
unsigned16 bcr18;
|
||||
unsigned16 bcr2;
|
||||
unsigned16 bcr21;
|
||||
unsigned16 Reserved4; /* Must be 0x0000 */
|
||||
unsigned16 Reserved5; /* Must be 0x0000 */
|
||||
unsigned8 Reserved6; /* Must be 0x00 */
|
||||
unsigned8 checksumAdjust;
|
||||
unsigned16 Reserved7; /* Must be 0x0000 */
|
||||
unsigned16 crc; /* CCITT checksum from Serial[] onwards */
|
||||
unsigned8 Serial[16]; /* Radstone Serial Number */
|
||||
uint8_t EthNumber[6];
|
||||
uint16_t Reserved1; /* Must be 0x0000 */
|
||||
uint16_t Reserved2; /* Must be 0x1000 */
|
||||
uint16_t User1;
|
||||
uint16_t checksum;
|
||||
uint16_t Reserved3; /* Must be 0x5757 */
|
||||
uint16_t bcr16;
|
||||
uint16_t bcr17;
|
||||
uint16_t bcr18;
|
||||
uint16_t bcr2;
|
||||
uint16_t bcr21;
|
||||
uint16_t Reserved4; /* Must be 0x0000 */
|
||||
uint16_t Reserved5; /* Must be 0x0000 */
|
||||
uint8_t Reserved6; /* Must be 0x00 */
|
||||
uint8_t checksumAdjust;
|
||||
uint16_t Reserved7; /* Must be 0x0000 */
|
||||
uint16_t crc; /* CCITT checksum from Serial[] onwards */
|
||||
uint8_t Serial[16]; /* Radstone Serial Number */
|
||||
} pc_net_eeprom_t;
|
||||
|
||||
/*
|
||||
@@ -219,9 +219,9 @@ typedef struct pc_net_eeprom {
|
||||
|
||||
typedef volatile struct initblk {
|
||||
/* mode can be set in csr15 */
|
||||
unsigned16 ib_mode; /* Chip's operating parameters */
|
||||
unsigned8 ib_rlen; /* rx ring length (power of 2) */
|
||||
unsigned8 ib_tlen; /* tx ring length (power of 2) */
|
||||
uint16_t ib_mode; /* Chip's operating parameters */
|
||||
uint8_t ib_rlen; /* rx ring length (power of 2) */
|
||||
uint8_t ib_tlen; /* tx ring length (power of 2) */
|
||||
/*
|
||||
* The bytes must be swapped within the word, so that, for example,
|
||||
* the address 8:0:20:1:25:5a is written in the order
|
||||
@@ -229,10 +229,10 @@ typedef volatile struct initblk {
|
||||
* For PCI970 that is long word swapped: so no swapping needed, since
|
||||
* the bus will swap.
|
||||
*/
|
||||
unsigned8 ib_padr[8]; /* physical address */
|
||||
unsigned16 ib_ladrf[4]; /* logical address filter */
|
||||
unsigned32 ib_rdra; /* rcv ring desc addr */
|
||||
unsigned32 ib_tdra; /* xmit ring desc addr */
|
||||
uint8_t ib_padr[8]; /* physical address */
|
||||
uint16_t ib_ladrf[4]; /* logical address filter */
|
||||
uint32_t ib_rdra; /* rcv ring desc addr */
|
||||
uint32_t ib_tdra; /* xmit ring desc addr */
|
||||
} initblk_t;
|
||||
|
||||
|
||||
@@ -275,15 +275,15 @@ typedef volatile struct initblk {
|
||||
*/
|
||||
|
||||
typedef volatile struct rmde {
|
||||
unsigned32 rmde_addr; /* buf addr */
|
||||
uint32_t rmde_addr; /* buf addr */
|
||||
|
||||
unsigned16 rmde_bcnt;
|
||||
unsigned16 rmde_flags;
|
||||
uint16_t rmde_bcnt;
|
||||
uint16_t rmde_flags;
|
||||
|
||||
unsigned16 rmde_mcnt;
|
||||
unsigned16 rmde_misc;
|
||||
uint16_t rmde_mcnt;
|
||||
uint16_t rmde_misc;
|
||||
|
||||
unsigned32 align;
|
||||
uint32_t align;
|
||||
} rmde_t;
|
||||
|
||||
|
||||
@@ -319,14 +319,14 @@ typedef volatile struct rmde {
|
||||
* 16 and 32 byte field will require swapping.
|
||||
*/
|
||||
typedef volatile struct tmde {
|
||||
unsigned32 tmde_addr; /* buf addr */
|
||||
uint32_t tmde_addr; /* buf addr */
|
||||
|
||||
unsigned16 tmde_bcnt;
|
||||
unsigned16 tmde_status; /* misc error and status bits */
|
||||
uint16_t tmde_bcnt;
|
||||
uint16_t tmde_status; /* misc error and status bits */
|
||||
|
||||
unsigned32 tmde_error;
|
||||
uint32_t tmde_error;
|
||||
|
||||
unsigned32 align;
|
||||
uint32_t align;
|
||||
} tmde_t;
|
||||
|
||||
/*
|
||||
@@ -414,13 +414,13 @@ typedef volatile struct tmde {
|
||||
/*
|
||||
* Bit definitions for BCR19
|
||||
*/
|
||||
#define prom_EDI (unsigned16)0x0001
|
||||
#define prom_EDO (unsigned16)0x0001
|
||||
#define prom_ESK (unsigned16)0x0002
|
||||
#define prom_ECS (unsigned16)0x0004
|
||||
#define prom_EEN (unsigned16)0x0010
|
||||
#define prom_EEDET (unsigned16)0x2000
|
||||
#define prom_PVALID (unsigned16)0x8000
|
||||
#define prom_PREAD (unsigned16)0x4000
|
||||
#define prom_EDI (uint16_t)0x0001
|
||||
#define prom_EDO (uint16_t)0x0001
|
||||
#define prom_ESK (uint16_t)0x0002
|
||||
#define prom_ECS (uint16_t)0x0004
|
||||
#define prom_EEN (uint16_t)0x0010
|
||||
#define prom_EEDET (uint16_t)0x2000
|
||||
#define prom_PVALID (uint16_t)0x8000
|
||||
#define prom_PREAD (uint16_t)0x4000
|
||||
|
||||
#endif
|
||||
@@ -33,35 +33,35 @@
|
||||
*/
|
||||
|
||||
typedef struct _MK48T18_CMOS_MAP {
|
||||
unsigned8 SystemDependentArea2[8];
|
||||
unsigned8 FeatureByte0[1];
|
||||
unsigned8 FeatureByte1[1];
|
||||
unsigned8 Century; /* century byte in BCD */
|
||||
unsigned8 FeatureByte3[1];
|
||||
unsigned8 FeatureByte4[1];
|
||||
unsigned8 FeatureByte5[1];
|
||||
unsigned8 FeatureByte6[1];
|
||||
unsigned8 FeatureByte7[1];
|
||||
unsigned8 BootPW[14];
|
||||
rtems_unsigned16 BootCrc; /* CRC on BootPW */
|
||||
unsigned8 ConfigPW[14];
|
||||
rtems_unsigned16 ConfigCrc; /* CRC on ConfigPW */
|
||||
unsigned8 SystemDependentArea1[8];
|
||||
uint8_t SystemDependentArea2[8];
|
||||
uint8_t FeatureByte0[1];
|
||||
uint8_t FeatureByte1[1];
|
||||
uint8_t Century; /* century byte in BCD */
|
||||
uint8_t FeatureByte3[1];
|
||||
uint8_t FeatureByte4[1];
|
||||
uint8_t FeatureByte5[1];
|
||||
uint8_t FeatureByte6[1];
|
||||
uint8_t FeatureByte7[1];
|
||||
uint8_t BootPW[14];
|
||||
uint16_t BootCrc; /* CRC on BootPW */
|
||||
uint8_t ConfigPW[14];
|
||||
uint16_t ConfigCrc; /* CRC on ConfigPW */
|
||||
uint8_t SystemDependentArea1[8];
|
||||
/*
|
||||
* The following are the RTC registers
|
||||
*/
|
||||
volatile unsigned8 Control;
|
||||
volatile unsigned8 Second:7; /* 0-59 */
|
||||
volatile unsigned8 Stop:1;
|
||||
volatile unsigned8 Minute; /* 0-59 */
|
||||
volatile unsigned8 Hour; /* 0-23 */
|
||||
volatile unsigned8 Day:3; /* 1-7 */
|
||||
volatile unsigned8 Resvd1:3; /* 0 */
|
||||
volatile unsigned8 FT:1; /* Frequency test bit - must be 0 */
|
||||
volatile unsigned8 Resvd2:1; /* 0 */
|
||||
volatile unsigned8 Date; /* 1-31 */
|
||||
volatile unsigned8 Month; /* 1-12 */
|
||||
volatile unsigned8 Year; /* 0-99 */
|
||||
volatile uint8_t Control;
|
||||
volatile uint8_t Second:7; /* 0-59 */
|
||||
volatile uint8_t Stop:1;
|
||||
volatile uint8_t Minute; /* 0-59 */
|
||||
volatile uint8_t Hour; /* 0-23 */
|
||||
volatile uint8_t Day:3; /* 1-7 */
|
||||
volatile uint8_t Resvd1:3; /* 0 */
|
||||
volatile uint8_t FT:1; /* Frequency test bit - must be 0 */
|
||||
volatile uint8_t Resvd2:1; /* 0 */
|
||||
volatile uint8_t Date; /* 1-31 */
|
||||
volatile uint8_t Month; /* 1-12 */
|
||||
volatile uint8_t Year; /* 0-99 */
|
||||
} MK48T18_CMOS_MAP, *PMK48T18_CMOS_MAP;
|
||||
|
||||
/*
|
||||
@@ -73,14 +73,14 @@ typedef struct _MK48T18_CMOS_MAP {
|
||||
|
||||
#define MK48T18_NVSIZE 8192-sizeof(MK48T18_CMOS_MAP)
|
||||
#define MK48T18_GESIZE (MK48T18_NVSIZE-CONFSIZE-OSAREASIZE-sizeof(HEADER))
|
||||
#define MK48T18_BASE (PMK48T18_NVRAM_MAP)((unsigned8 *)PCI_MEM_BASE+0x00800000)
|
||||
#define MK48T18_BASE (PMK48T18_NVRAM_MAP)((uint8_t*)PCI_MEM_BASE+0x00800000)
|
||||
|
||||
/* Here is the whole map of the MK48T18 NVRAM */
|
||||
typedef struct _MK48T18_NVRAM_MAP {
|
||||
HEADER Header;
|
||||
unsigned8 GEArea[MK48T18_GESIZE];
|
||||
unsigned8 OSArea[OSAREASIZE];
|
||||
unsigned8 ConfigArea[CONFSIZE];
|
||||
uint8_t GEArea[MK48T18_GESIZE];
|
||||
uint8_t OSArea[OSAREASIZE];
|
||||
uint8_t ConfigArea[CONFSIZE];
|
||||
MK48T18_CMOS_MAP CMOS;
|
||||
} MK48T18_NVRAM_MAP, *PMK48T18_NVRAM_MAP;
|
||||
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -28,7 +28,7 @@
|
||||
*/
|
||||
#define STK11C68_NVSIZE 8192
|
||||
#define STK11C68_GESIZE (STK11C68_NVSIZE-CONFSIZE-OSAREASIZE-sizeof(HEADER))
|
||||
#define STK11C68_BASE (PSTK11C68_NVRAM_MAP)((unsigned8 *)PCI_MEM_BASE+0x00800000)
|
||||
#define STK11C68_BASE (PSTK11C68_NVRAM_MAP)((uint8_t*)PCI_MEM_BASE+0x00800000)
|
||||
|
||||
/*
|
||||
* STK11C88 definitions
|
||||
@@ -38,9 +38,9 @@
|
||||
/* Here is the whole map of the STK11C68 NVRAM */
|
||||
typedef struct _STK11C68_NVRAM_MAP {
|
||||
HEADER Header;
|
||||
unsigned8 GEArea[STK11C68_GESIZE];
|
||||
unsigned8 OSArea[OSAREASIZE];
|
||||
unsigned8 ConfigArea[CONFSIZE];
|
||||
uint8_t GEArea[STK11C68_GESIZE];
|
||||
uint8_t OSArea[OSAREASIZE];
|
||||
uint8_t ConfigArea[CONFSIZE];
|
||||
} STK11C68_NVRAM_MAP, *PSTK11C68_NVRAM_MAP;
|
||||
|
||||
#endif /* _STK11C68_H */
|
||||
@@ -48,17 +48,17 @@
|
||||
/*
|
||||
* Private data
|
||||
*/
|
||||
static unsigned8 ucMaxPCIBus;
|
||||
static uint8_t ucMaxPCIBus;
|
||||
|
||||
/*
|
||||
* Public routines
|
||||
*/
|
||||
rtems_status_code PCIConfigWrite8(
|
||||
unsigned8 ucBusNumber,
|
||||
unsigned8 ucSlotNumber,
|
||||
unsigned8 ucFunctionNumber,
|
||||
unsigned8 ucOffset,
|
||||
unsigned8 ucValue
|
||||
uint8_t ucBusNumber,
|
||||
uint8_t ucSlotNumber,
|
||||
uint8_t ucFunctionNumber,
|
||||
uint8_t ucOffset,
|
||||
uint8_t ucValue
|
||||
)
|
||||
{
|
||||
ISR_Level Irql;
|
||||
@@ -86,11 +86,11 @@ rtems_status_code PCIConfigWrite8(
|
||||
}
|
||||
|
||||
rtems_status_code PCIConfigWrite16(
|
||||
unsigned8 ucBusNumber,
|
||||
unsigned8 ucSlotNumber,
|
||||
unsigned8 ucFunctionNumber,
|
||||
unsigned8 ucOffset,
|
||||
unsigned16 usValue
|
||||
uint8_t ucBusNumber,
|
||||
uint8_t ucSlotNumber,
|
||||
uint8_t ucFunctionNumber,
|
||||
uint8_t ucOffset,
|
||||
uint16_t usValue
|
||||
)
|
||||
{
|
||||
ISR_Level Irql;
|
||||
@@ -118,11 +118,11 @@ rtems_status_code PCIConfigWrite16(
|
||||
}
|
||||
|
||||
rtems_status_code PCIConfigWrite32(
|
||||
unsigned8 ucBusNumber,
|
||||
unsigned8 ucSlotNumber,
|
||||
unsigned8 ucFunctionNumber,
|
||||
unsigned8 ucOffset,
|
||||
unsigned32 ulValue
|
||||
uint8_t ucBusNumber,
|
||||
uint8_t ucSlotNumber,
|
||||
uint8_t ucFunctionNumber,
|
||||
uint8_t ucOffset,
|
||||
uint32_t ulValue
|
||||
)
|
||||
{
|
||||
ISR_Level Irql;
|
||||
@@ -150,11 +150,11 @@ rtems_status_code PCIConfigWrite32(
|
||||
}
|
||||
|
||||
rtems_status_code PCIConfigRead8(
|
||||
unsigned8 ucBusNumber,
|
||||
unsigned8 ucSlotNumber,
|
||||
unsigned8 ucFunctionNumber,
|
||||
unsigned8 ucOffset,
|
||||
unsigned8 *pucValue
|
||||
uint8_t ucBusNumber,
|
||||
uint8_t ucSlotNumber,
|
||||
uint8_t ucFunctionNumber,
|
||||
uint8_t ucOffset,
|
||||
uint8_t *pucValue
|
||||
)
|
||||
{
|
||||
ISR_Level Irql;
|
||||
@@ -182,11 +182,11 @@ rtems_status_code PCIConfigRead8(
|
||||
}
|
||||
|
||||
rtems_status_code PCIConfigRead16(
|
||||
unsigned8 ucBusNumber,
|
||||
unsigned8 ucSlotNumber,
|
||||
unsigned8 ucFunctionNumber,
|
||||
unsigned8 ucOffset,
|
||||
unsigned16 *pusValue
|
||||
uint8_t ucBusNumber,
|
||||
uint8_t ucSlotNumber,
|
||||
uint8_t ucFunctionNumber,
|
||||
uint8_t ucOffset,
|
||||
uint16_t *pusValue
|
||||
)
|
||||
{
|
||||
ISR_Level Irql;
|
||||
@@ -214,11 +214,11 @@ rtems_status_code PCIConfigRead16(
|
||||
}
|
||||
|
||||
rtems_status_code PCIConfigRead32(
|
||||
unsigned8 ucBusNumber,
|
||||
unsigned8 ucSlotNumber,
|
||||
unsigned8 ucFunctionNumber,
|
||||
unsigned8 ucOffset,
|
||||
unsigned32 *pulValue
|
||||
uint8_t ucBusNumber,
|
||||
uint8_t ucSlotNumber,
|
||||
uint8_t ucFunctionNumber,
|
||||
uint8_t ucOffset,
|
||||
uint32_t *pulValue
|
||||
)
|
||||
{
|
||||
ISR_Level Irql;
|
||||
@@ -250,10 +250,10 @@ rtems_status_code PCIConfigRead32(
|
||||
*/
|
||||
void InitializePCI()
|
||||
{
|
||||
unsigned8 ucSlotNumber, ucFnNumber, ucNumFuncs;
|
||||
unsigned8 ucHeader;
|
||||
unsigned8 ucBaseClass, ucSubClass, ucMaxSubordinate;
|
||||
unsigned32 ulDeviceID;
|
||||
uint8_t ucSlotNumber, ucFnNumber, ucNumFuncs;
|
||||
uint8_t ucHeader;
|
||||
uint8_t ucBaseClass, ucSubClass, ucMaxSubordinate;
|
||||
uint32_t ulDeviceID;
|
||||
|
||||
/*
|
||||
* Scan PCI bus 0 looking for PCI-PCI bridges
|
||||
@@ -336,7 +336,7 @@ void InitializePCI()
|
||||
/*
|
||||
* Return the number of PCI busses in the system
|
||||
*/
|
||||
unsigned8 BusCountPCI()
|
||||
uint8_t BusCountPCI()
|
||||
{
|
||||
return(ucMaxPCIBus+1);
|
||||
}
|
||||
@@ -66,7 +66,7 @@ extern rtems_configuration_table Configuration;
|
||||
rtems_configuration_table BSP_Configuration;
|
||||
|
||||
rtems_cpu_table Cpu_table;
|
||||
rtems_unsigned32 bsp_isr_level;
|
||||
uint32_t bsp_isr_level;
|
||||
|
||||
static int stdin_fd, stdout_fd, stderr_fd;
|
||||
|
||||
@@ -80,7 +80,7 @@ extern int end;
|
||||
*/
|
||||
|
||||
void bsp_postdriver_hook(void);
|
||||
void bsp_libc_init( void *, unsigned32, int );
|
||||
void bsp_libc_init( void *, uint32_t, int );
|
||||
|
||||
/*
|
||||
* bsp_pretasking_hook
|
||||
@@ -91,10 +91,10 @@ void bsp_libc_init( void *, unsigned32, int );
|
||||
|
||||
void bsp_pretasking_hook(void)
|
||||
{
|
||||
rtems_unsigned32 heap_start;
|
||||
rtems_unsigned32 heap_size;
|
||||
uint32_t heap_start;
|
||||
uint32_t heap_size;
|
||||
|
||||
heap_start = (rtems_unsigned32) &end;
|
||||
heap_start = (uint32_t) &end;
|
||||
if (heap_start & (CPU_ALIGNMENT-1))
|
||||
heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
|
||||
|
||||
@@ -165,11 +165,11 @@ void bsp_start( void )
|
||||
{
|
||||
unsigned char *work_space_start;
|
||||
unsigned char ucBoardRev, ucMothMemType, ucEquipPres1, ucEquipPres2;
|
||||
unsigned16 usPVR=0;
|
||||
unsigned8 ucTempl, ucTemph;
|
||||
unsigned8 ucBanksPresent;
|
||||
unsigned8 ucSimmPresent;
|
||||
unsigned32 ulCurBank, ulTopBank;
|
||||
uint16_t usPVR=0;
|
||||
uint8_t ucTempl, ucTemph;
|
||||
uint8_t ucBanksPresent;
|
||||
uint8_t ucSimmPresent;
|
||||
uint32_t ulCurBank, ulTopBank;
|
||||
|
||||
/*
|
||||
* Determine system type
|
||||
|
||||
@@ -46,8 +46,8 @@ rtems_isr external_exception_ISR (
|
||||
/*
|
||||
* Current 8259 masks
|
||||
*/
|
||||
unsigned8 ucMaster8259Mask;
|
||||
unsigned8 ucSlave8259Mask;
|
||||
uint8_t ucMaster8259Mask;
|
||||
uint8_t ucSlave8259Mask;
|
||||
|
||||
/*
|
||||
* Structure to for one of possible multiple interrupt handlers for
|
||||
@@ -65,7 +65,7 @@ typedef struct
|
||||
* handlers at a later time.
|
||||
*/
|
||||
EE_ISR_Type ISR_Nodes [NUM_LIRQ_HANDLERS];
|
||||
rtems_unsigned16 Nodes_Used;
|
||||
uint16_t Nodes_Used;
|
||||
Chain_Control ISR_Array [NUM_LIRQ];
|
||||
|
||||
void initialize_external_exception_vector()
|
||||
@@ -177,8 +177,8 @@ void set_EE_vector(
|
||||
rtems_vector_number vector /* vector number */
|
||||
)
|
||||
{
|
||||
rtems_unsigned16 vec_idx = vector - PPCN_60X_8259_IRQ_BASE;
|
||||
rtems_unsigned32 index;
|
||||
uint16_t vec_idx = vector - PPCN_60X_8259_IRQ_BASE;
|
||||
uint32_t index;
|
||||
|
||||
assert (Nodes_Used < NUM_LIRQ_HANDLERS);
|
||||
|
||||
@@ -222,11 +222,11 @@ rtems_isr external_exception_ISR (
|
||||
rtems_vector_number vector /* IN */
|
||||
)
|
||||
{
|
||||
unsigned16 index;
|
||||
unsigned8 ucISr;
|
||||
uint16_t index;
|
||||
uint8_t ucISr;
|
||||
EE_ISR_Type *node;
|
||||
|
||||
index = *((volatile unsigned8 *)IRQ_VECTOR_BASE);
|
||||
index = *((volatile uint8_t*)IRQ_VECTOR_BASE);
|
||||
|
||||
/*
|
||||
* check for spurious interrupt
|
||||
|
||||
@@ -175,7 +175,7 @@ rtems_isr bsp_spurious_handler(
|
||||
|
||||
void bsp_spurious_initialize()
|
||||
{
|
||||
rtems_unsigned32 trap;
|
||||
uint32_t trap;
|
||||
|
||||
for ( trap=0 ; trap < PPC_IRQ_LAST ; trap++ ) {
|
||||
|
||||
|
||||
@@ -27,10 +27,10 @@
|
||||
*/
|
||||
|
||||
inline unsigned int Swap32(
|
||||
unsigned32 ulValue
|
||||
uint32_t ulValue
|
||||
)
|
||||
{
|
||||
unsigned32 ulSwapped;
|
||||
uint32_t ulSwapped;
|
||||
|
||||
asm volatile(
|
||||
"rlwimi %0,%1,8,24,31;"
|
||||
@@ -46,10 +46,10 @@ inline unsigned int Swap32(
|
||||
}
|
||||
|
||||
inline unsigned int Swap16(
|
||||
unsigned16 usValue
|
||||
uint16_t usValue
|
||||
)
|
||||
{
|
||||
unsigned16 usSwapped;
|
||||
uint16_t usSwapped;
|
||||
|
||||
asm volatile(
|
||||
"rlwimi %0,%1,24,24,31;"
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#include <bsp.h>
|
||||
|
||||
rtems_unsigned64 Timer_driver_Start_time;
|
||||
uint64_t Timer_driver_Start_time;
|
||||
|
||||
rtems_boolean Timer_driver_Find_average_overhead;
|
||||
|
||||
@@ -43,9 +43,9 @@ void Timer_initialize()
|
||||
*/
|
||||
int Read_timer()
|
||||
{
|
||||
rtems_unsigned64 clicks;
|
||||
rtems_unsigned64 total64;
|
||||
rtems_unsigned32 total;
|
||||
uint64_t clicks;
|
||||
uint64_t total64;
|
||||
uint32_t total;
|
||||
|
||||
/* approximately CLOCK_SPEED clicks per microsecond */
|
||||
|
||||
@@ -55,9 +55,9 @@ int Read_timer()
|
||||
|
||||
total64 = clicks - Timer_driver_Start_time;
|
||||
|
||||
assert( total64 <= 0xffffffff ); /* fits into a unsigned32 */
|
||||
assert( total64 <= 0xffffffff ); /* fits into a uint32_t */
|
||||
|
||||
total = (rtems_unsigned32) total64;
|
||||
total = (uint32_t) total64;
|
||||
|
||||
if ( Timer_driver_Find_average_overhead == 1 )
|
||||
return total; /* in "clicks" of the decrementer units */
|
||||
|
||||
@@ -67,29 +67,29 @@
|
||||
#define DS1385_REGD_VALID 0x80
|
||||
|
||||
typedef struct _CMOS_MAP {
|
||||
volatile rtems_unsigned8 DateAndTime[14];
|
||||
volatile uint8_t DateAndTime[14];
|
||||
|
||||
rtems_unsigned8 SystemDependentArea1[2];
|
||||
rtems_unsigned8 SystemDependentArea2[8];
|
||||
rtems_unsigned8 FeatureByte0[1];
|
||||
rtems_unsigned8 FeatureByte1[1]; /* 19 = PW Flag;
|
||||
uint8_t SystemDependentArea1[2];
|
||||
uint8_t SystemDependentArea2[8];
|
||||
uint8_t FeatureByte0[1];
|
||||
uint8_t FeatureByte1[1]; /* 19 = PW Flag;
|
||||
attribute = write protect */
|
||||
rtems_unsigned8 Century[1]; /* century byte in BCD, e.g. 0x19 currently */
|
||||
rtems_unsigned8 FeatureByte3[1];
|
||||
rtems_unsigned8 FeatureByte4[1];
|
||||
rtems_unsigned8 FeatureByte5[1];
|
||||
rtems_unsigned8 FeatureByte6[1];
|
||||
rtems_unsigned8 FeatureByte7[1]; /* 1F = Alternate PW Flag;
|
||||
uint8_t Century[1]; /* century byte in BCD, e.g. 0x19 currently */
|
||||
uint8_t FeatureByte3[1];
|
||||
uint8_t FeatureByte4[1];
|
||||
uint8_t FeatureByte5[1];
|
||||
uint8_t FeatureByte6[1];
|
||||
uint8_t FeatureByte7[1]; /* 1F = Alternate PW Flag;
|
||||
attribute = write protect */
|
||||
rtems_unsigned8 BootPW[14]; /* Power-on password needed to boot system;
|
||||
uint8_t BootPW[14]; /* Power-on password needed to boot system;
|
||||
reset value = 0x00000000000000005a5a5a5a5a5a);
|
||||
attribute = lock */
|
||||
rtems_unsigned8 BootCrc[2]; /* CRC on BootPW */
|
||||
rtems_unsigned8 ConfigPW[14]; /* Configuration Password needed to
|
||||
uint8_t BootCrc[2]; /* CRC on BootPW */
|
||||
uint8_t ConfigPW[14]; /* Configuration Password needed to
|
||||
change configuration of system;
|
||||
reset value = 0x00000000000000005a5a5a5a5a5a);
|
||||
attribute = lock */
|
||||
rtems_unsigned8 ConfigCrc[2]; /* CRC on ConfigPW */
|
||||
uint8_t ConfigCrc[2]; /* CRC on ConfigPW */
|
||||
} CMOS_MAP, *PCMOS_MAP;
|
||||
|
||||
#endif /* _CMOS_ */
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user