Rename all uses of U8_t to u8_t and remove U8_t, remove unused I8_t,
Remove all uses of U16_t and U32_t in pci-related code. If necessary to avoid problems, change functions to ansi-style declaration.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
/*===========================================================================*
|
||||
* helper functions for I/O *
|
||||
*===========================================================================*/
|
||||
PUBLIC unsigned pci_inb(U16_t port) {
|
||||
PUBLIC unsigned pci_inb(u16_t port) {
|
||||
u32_t value;
|
||||
int s;
|
||||
if ((s=sys_inb(port, &value)) !=OK)
|
||||
@@ -23,7 +23,7 @@ PUBLIC unsigned pci_inb(U16_t port) {
|
||||
}
|
||||
|
||||
|
||||
PUBLIC unsigned pci_inw(U16_t port) {
|
||||
PUBLIC unsigned pci_inw(u16_t port) {
|
||||
u32_t value;
|
||||
int s;
|
||||
if ((s=sys_inw(port, &value)) !=OK)
|
||||
@@ -32,7 +32,7 @@ PUBLIC unsigned pci_inw(U16_t port) {
|
||||
}
|
||||
|
||||
|
||||
PUBLIC unsigned pci_inl(U16_t port) {
|
||||
PUBLIC unsigned pci_inl(u16_t port) {
|
||||
U32_t value;
|
||||
int s;
|
||||
if ((s=sys_inl(port, &value)) !=OK)
|
||||
@@ -41,21 +41,21 @@ PUBLIC unsigned pci_inl(U16_t port) {
|
||||
}
|
||||
|
||||
|
||||
PUBLIC void pci_outb(U16_t port, U8_t value) {
|
||||
PUBLIC void pci_outb(u16_t port, u8_t value) {
|
||||
int s;
|
||||
if ((s=sys_outb(port, value)) !=OK)
|
||||
printf("%s: warning, sys_outb failed: %d\n", DRIVER_NAME, s);
|
||||
}
|
||||
|
||||
|
||||
PUBLIC void pci_outw(U16_t port, U16_t value) {
|
||||
PUBLIC void pci_outw(u16_t port, u16_t value) {
|
||||
int s;
|
||||
if ((s=sys_outw(port, value)) !=OK)
|
||||
printf("%s: warning, sys_outw failed: %d\n", DRIVER_NAME, s);
|
||||
}
|
||||
|
||||
|
||||
PUBLIC void pci_outl(U16_t port, U32_t value) {
|
||||
PUBLIC void pci_outl(u16_t port, u32_t value) {
|
||||
int s;
|
||||
if ((s=sys_outl(port, value)) !=OK)
|
||||
printf("%s: warning, sys_outl failed: %d\n", DRIVER_NAME, s);
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
#ifndef PCI_HELPER
|
||||
#define PCI_HELPER
|
||||
|
||||
_PROTOTYPE( unsigned pci_inb, (U16_t port) );
|
||||
_PROTOTYPE( unsigned pci_inw, (U16_t port) );
|
||||
_PROTOTYPE( unsigned pci_inl, (U16_t port) );
|
||||
_PROTOTYPE( unsigned pci_inb, (u16_t port) );
|
||||
_PROTOTYPE( unsigned pci_inw, (u16_t port) );
|
||||
_PROTOTYPE( unsigned pci_inl, (u16_t port) );
|
||||
|
||||
_PROTOTYPE( void pci_outb, (U16_t port, U8_t value) );
|
||||
_PROTOTYPE( void pci_outw, (U16_t port, U16_t value) );
|
||||
_PROTOTYPE( void pci_outl, (U16_t port, U32_t value) );
|
||||
_PROTOTYPE( void pci_outb, (u16_t port, u8_t value) );
|
||||
_PROTOTYPE( void pci_outw, (u16_t port, u16_t value) );
|
||||
_PROTOTYPE( void pci_outl, (u16_t port, u32_t value) );
|
||||
|
||||
#endif
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
/*===========================================================================*
|
||||
* helper functions for I/O *
|
||||
*===========================================================================*/
|
||||
PUBLIC unsigned pci_inb(U16_t port) {
|
||||
PUBLIC unsigned pci_inb(u16_t port) {
|
||||
u32_t value;
|
||||
int s;
|
||||
if ((s=sys_inb(port, &value)) !=OK)
|
||||
@@ -23,7 +23,7 @@ PUBLIC unsigned pci_inb(U16_t port) {
|
||||
}
|
||||
|
||||
|
||||
PUBLIC unsigned pci_inw(U16_t port) {
|
||||
PUBLIC unsigned pci_inw(u16_t port) {
|
||||
u32_t value;
|
||||
int s;
|
||||
if ((s=sys_inw(port, &value)) !=OK)
|
||||
@@ -32,8 +32,8 @@ PUBLIC unsigned pci_inw(U16_t port) {
|
||||
}
|
||||
|
||||
|
||||
PUBLIC unsigned pci_inl(U16_t port) {
|
||||
U32_t value;
|
||||
PUBLIC unsigned pci_inl(u16_t port) {
|
||||
u32_t value;
|
||||
int s;
|
||||
if ((s=sys_inl(port, &value)) !=OK)
|
||||
printf("%s: warning, sys_inl failed: %d\n", DRIVER_NAME, s);
|
||||
@@ -41,21 +41,21 @@ PUBLIC unsigned pci_inl(U16_t port) {
|
||||
}
|
||||
|
||||
|
||||
PUBLIC void pci_outb(U16_t port, U8_t value) {
|
||||
PUBLIC void pci_outb(u16_t port, u8_t value) {
|
||||
int s;
|
||||
if ((s=sys_outb(port, value)) !=OK)
|
||||
printf("%s: warning, sys_outb failed: %d\n", DRIVER_NAME, s);
|
||||
}
|
||||
|
||||
|
||||
PUBLIC void pci_outw(U16_t port, U16_t value) {
|
||||
PUBLIC void pci_outw(u16_t port, u16_t value) {
|
||||
int s;
|
||||
if ((s=sys_outw(port, value)) !=OK)
|
||||
printf("%s: warning, sys_outw failed: %d\n", DRIVER_NAME, s);
|
||||
}
|
||||
|
||||
|
||||
PUBLIC void pci_outl(U16_t port, U32_t value) {
|
||||
PUBLIC void pci_outl(u16_t port, u32_t value) {
|
||||
int s;
|
||||
if ((s=sys_outl(port, value)) !=OK)
|
||||
printf("%s: warning, sys_outl failed: %d\n", DRIVER_NAME, s);
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
#ifndef PCI_HELPER
|
||||
#define PCI_HELPER
|
||||
|
||||
_PROTOTYPE( unsigned pci_inb, (U16_t port) );
|
||||
_PROTOTYPE( unsigned pci_inw, (U16_t port) );
|
||||
_PROTOTYPE( unsigned pci_inl, (U16_t port) );
|
||||
_PROTOTYPE( unsigned pci_inb, (u16_t port) );
|
||||
_PROTOTYPE( unsigned pci_inw, (u16_t port) );
|
||||
_PROTOTYPE( unsigned pci_inl, (u16_t port) );
|
||||
|
||||
_PROTOTYPE( void pci_outb, (U16_t port, U8_t value) );
|
||||
_PROTOTYPE( void pci_outw, (U16_t port, U16_t value) );
|
||||
_PROTOTYPE( void pci_outl, (U16_t port, U32_t value) );
|
||||
_PROTOTYPE( void pci_outb, (u16_t port, u8_t value) );
|
||||
_PROTOTYPE( void pci_outw, (u16_t port, u16_t value) );
|
||||
_PROTOTYPE( void pci_outl, (u16_t port, u32_t value) );
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user