diff options
Diffstat (limited to 'c/src/lib/libbsp/sparc/shared/include')
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/ambapp.h | 8 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/apbuart_pci.h | 8 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/apbuart_rasta.h | 8 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/b1553brm.h | 14 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/b1553brm_pci.h | 12 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/b1553brm_rasta.h | 12 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/debug_defs.h | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/grcan.h | 10 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/grcan_rasta.h | 4 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/grspw.h | 18 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/grspw_pci.h | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/grspw_rasta.h | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/i2cmst.h | 4 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/occan.h | 30 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/occan_pci.h | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/pci.h | 24 |
16 files changed, 82 insertions, 82 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/include/ambapp.h b/c/src/lib/libbsp/sparc/shared/include/ambapp.h index 4e76331c64..e2b557d85e 100644 --- a/c/src/lib/libbsp/sparc/shared/include/ambapp.h +++ b/c/src/lib/libbsp/sparc/shared/include/ambapp.h @@ -80,9 +80,9 @@ extern "C" { #define OPENCORES_PCIBR 0x4 #define OPENCORES_ETHMAC 0x5 -/* +/* * - * Macros for manipulating Configuration registers + * Macros for manipulating Configuration registers * */ #define amba_get_confword(tab, index, word) (*((tab).addr[(index)]+(word))) @@ -114,7 +114,7 @@ extern "C" { #define AMBA_TYPE_AHBIO_ADDR(addr,base_ioarea) ((unsigned int)(base_ioarea) | ((addr) >> 12)) /* - * Types and structure used for AMBA Plug & Play bus scanning + * Types and structure used for AMBA Plug & Play bus scanning * */ typedef struct amba_device_table { @@ -164,7 +164,7 @@ typedef struct { * \param amba_conf AMBA P&P device info is placed here. * \param ioarea address of AMBA Plug&Play information, * on LEON3 systems default is 0xfff00000 - * \param mmaps Memory mmap specific to this amba bus, + * \param mmaps Memory mmap specific to this amba bus, * if NULL no translation will be made (default). * A array of maps, ending with a entry with size=0. */ diff --git a/c/src/lib/libbsp/sparc/shared/include/apbuart_pci.h b/c/src/lib/libbsp/sparc/shared/include/apbuart_pci.h index ac3a548912..e8064297c8 100644 --- a/c/src/lib/libbsp/sparc/shared/include/apbuart_pci.h +++ b/c/src/lib/libbsp/sparc/shared/include/apbuart_pci.h @@ -21,16 +21,16 @@ extern "C" { /* Register APBUART driver, if APBUART devices are found. * bus = pointer to AMBA bus description used to search for APBUART(s). - * + * */ int apbuart_pci_register (amba_confarea_type * bus); /* This function must be called on APBUART interrupt. Called from the - * PCI interrupt handler. - * irq = AMBA IRQ assigned to the APBUART device, is found by reading + * PCI interrupt handler. + * irq = AMBA IRQ assigned to the APBUART device, is found by reading * pending register on IRQMP connected to the APBUART device. - * + * */ void apbuartpci_interrupt_handler (int irq, void *arg); diff --git a/c/src/lib/libbsp/sparc/shared/include/apbuart_rasta.h b/c/src/lib/libbsp/sparc/shared/include/apbuart_rasta.h index 183ceec781..1edf6f98d3 100644 --- a/c/src/lib/libbsp/sparc/shared/include/apbuart_rasta.h +++ b/c/src/lib/libbsp/sparc/shared/include/apbuart_rasta.h @@ -21,16 +21,16 @@ extern "C" { /* Register APBUART driver, if APBUART devices are found. * bus = pointer to AMBA bus description used to search for APBUART(s). - * + * */ int apbuart_rasta_register(amba_confarea_type *bus); /* This function must be called on APBUART interrupt. Called from the - * RASTA interrupt handler. - * irq = AMBA IRQ assigned to the APBUART device, is found by reading + * RASTA interrupt handler. + * irq = AMBA IRQ assigned to the APBUART device, is found by reading * pending register on IRQMP connected to the APBUART device. - * + * */ void apbuartrasta_interrupt_handler(int irq, void *arg); diff --git a/c/src/lib/libbsp/sparc/shared/include/b1553brm.h b/c/src/lib/libbsp/sparc/shared/include/b1553brm.h index e2d8a29242..f5fd343078 100644 --- a/c/src/lib/libbsp/sparc/shared/include/b1553brm.h +++ b/c/src/lib/libbsp/sparc/shared/include/b1553brm.h @@ -38,9 +38,9 @@ struct brm_reg { volatile unsigned int mfiltb; /* 0x3C */ volatile unsigned int rt_cmd_leg[16]; /* 0x40-0x80 */ volatile unsigned int enhanced; /* 0x84 */ - + volatile unsigned int dummy[31]; - + volatile unsigned int w_ctrl; /* 0x100 */ volatile unsigned int w_irqctrl; /* 0x104 */ volatile unsigned int w_ahbaddr; /* 0x108 */ @@ -63,7 +63,7 @@ struct rt_msg { unsigned short desc; }; -/* +/* * rtaddr[0] and subaddr[0] : RT address and subaddress (for rt-rt receive addresses) * rtaddr[1] and subaddr[1] : Only for RT-RT. Transmit addresses. * @@ -71,9 +71,9 @@ struct rt_msg { * * ctrl, bit 0 (TR) : 1 - transmit, 0 - receive. Ignored for rt-rt * bit 1 (RTRT) : 1 - rt to rt, 0 - normal - * bit 2 (AB) : 1 - Bus B, 0 - Bus A + * bit 2 (AB) : 1 - Bus B, 0 - Bus A * bit 4:3 (Retry) : 1 - 1, 2 - 2, 3 - 3, 0 - 4 - * bit 5 (END) : End of list + * bit 5 (END) : End of list * bit 15 (BAME) : Message error. Set by BRM if protocol error is detected * * tsw[0] : status word @@ -83,7 +83,7 @@ struct rt_msg { * */ struct bc_msg { - unsigned char rtaddr[2]; + unsigned char rtaddr[2]; unsigned char subaddr[2]; unsigned short wc; unsigned short ctrl; @@ -155,7 +155,7 @@ int brm_register_leon3_ramon_asic(void); #define CLKSEL_MASK 0x7 -/* Register BRM driver +/* Register BRM driver * See (struct brm_reg).w_ctrl for clksel and clkdiv. * See Enhanced register (the least signinficant 2 bits) in BRM Core for brm_freq * bus = &amba_conf for LEON3. (LEON2 not yet supported for this driver) diff --git a/c/src/lib/libbsp/sparc/shared/include/b1553brm_pci.h b/c/src/lib/libbsp/sparc/shared/include/b1553brm_pci.h index 5e47e462f0..74f9d321de 100644 --- a/c/src/lib/libbsp/sparc/shared/include/b1553brm_pci.h +++ b/c/src/lib/libbsp/sparc/shared/include/b1553brm_pci.h @@ -19,25 +19,25 @@ extern "C" { #endif -/* Register BRM driver +/* Register BRM driver * See (struct brm_reg).w_ctrl for clksel and clkdiv. * See Enhanced register (the least signinficant 2 bits) in BRM Core for brm_freq * bus = &amba_conf for LEON3. (LEON2 not yet supported for this driver) - * + * * Memory setup: * memarea = 128k aligned pointer to memory (if zero malloc will be used) (as the CPU sees it) * hw_address = address that HW must use to access memarea. (used in the translation process) */ int b1553brm_pci_register( - amba_confarea_type *bus, - unsigned int clksel, - unsigned int clkdiv, + amba_confarea_type *bus, + unsigned int clksel, + unsigned int clkdiv, unsigned int brm_freq, unsigned int memarea, unsigned int hw_address ); - + /* This function must be called on BRM interrupt. Called from the * PCI interrupt handler. irq = AMBA IRQ MASK assigned to the BRM device, diff --git a/c/src/lib/libbsp/sparc/shared/include/b1553brm_rasta.h b/c/src/lib/libbsp/sparc/shared/include/b1553brm_rasta.h index 9f77bc855d..cd5165801c 100644 --- a/c/src/lib/libbsp/sparc/shared/include/b1553brm_rasta.h +++ b/c/src/lib/libbsp/sparc/shared/include/b1553brm_rasta.h @@ -19,25 +19,25 @@ extern "C" { #endif -/* Register BRM driver +/* Register BRM driver * See (struct brm_reg).w_ctrl for clksel and clkdiv. * See Enhanced register (the least signinficant 2 bits) in BRM Core for brm_freq * bus = &amba_conf for LEON3. (LEON2 not yet supported for this driver) - * + * * Memory setup: * memarea = 128k aligned pointer to memory (if zero malloc will be used) (as the CPU sees it) * hw_address = address that HW must use to access memarea. (used in the translation process) */ int b1553brm_rasta_register( - amba_confarea_type *bus, - unsigned int clksel, - unsigned int clkdiv, + amba_confarea_type *bus, + unsigned int clksel, + unsigned int clkdiv, unsigned int brm_freq, unsigned int memarea, unsigned int hw_address ); - + /* This function must be called on BRM interrupt. Called from the * PCI interrupt handler. irq = AMBA IRQ MASK assigned to the BRM device, diff --git a/c/src/lib/libbsp/sparc/shared/include/debug_defs.h b/c/src/lib/libbsp/sparc/shared/include/debug_defs.h index 414734ddfd..2adea2af54 100644 --- a/c/src/lib/libbsp/sparc/shared/include/debug_defs.h +++ b/c/src/lib/libbsp/sparc/shared/include/debug_defs.h @@ -14,15 +14,15 @@ extern "C" { #endif #define DBG(fmt, args...) do { printk(" : %03d @ %18s()]:" fmt , __LINE__,__FUNCTION__,## args); } while(0) - #define DBG2(fmt) do { printk(" : %03d @ %18s()]:" fmt , __LINE__,__FUNCTION__); } while(0) + #define DBG2(fmt) do { printk(" : %03d @ %18s()]:" fmt , __LINE__,__FUNCTION__); } while(0) #define DBGC(c,fmt, args...) do { if (DEBUG_FLAGS & c) { printk(" : %03d @ %18s()]:" fmt , __LINE__,__FUNCTION__,## args); }} while(0) #else #define DBG(fmt, args...) - #define DBG2(fmt, args...) + #define DBG2(fmt, args...) #define DBGC(c, fmt, args...) - + #endif #ifdef DEBUGFUNCS diff --git a/c/src/lib/libbsp/sparc/shared/include/grcan.h b/c/src/lib/libbsp/sparc/shared/include/grcan.h index 88c15c1282..8b3ed15e55 100644 --- a/c/src/lib/libbsp/sparc/shared/include/grcan.h +++ b/c/src/lib/libbsp/sparc/shared/include/grcan.h @@ -1,5 +1,5 @@ /* - * Macros used for grcan controller + * Macros used for grcan controller * * COPYRIGHT (c) 2007. * Gaisler Research @@ -41,7 +41,7 @@ struct grcan_regs { volatile unsigned int tx0ctrl; /* 0x200 */ volatile unsigned int tx0addr; /* 0x204 */ volatile unsigned int tx0size; /* 0x208 */ - volatile unsigned int tx0wr; /* 0x20C */ + volatile unsigned int tx0wr; /* 0x20C */ volatile unsigned int tx0rd; /* 0x210 */ volatile unsigned int tx0irq; /* 0x214 */ @@ -50,9 +50,9 @@ struct grcan_regs { volatile unsigned int rx0ctrl; /* 0x300 */ volatile unsigned int rx0addr; /* 0x304 */ volatile unsigned int rx0size; /* 0x308 */ - volatile unsigned int rx0wr; /* 0x30C */ + volatile unsigned int rx0wr; /* 0x30C */ volatile unsigned int rx0rd; /* 0x310 */ - volatile unsigned int rx0irq; /* 0x314 */ + volatile unsigned int rx0irq; /* 0x314 */ volatile unsigned int rx0mask; /* 0x318 */ volatile unsigned int rx0code; /* 0x31C */ }; @@ -76,7 +76,7 @@ struct grcan_timing { }; struct grcan_selection { - int selection; + int selection; int enable0; int enable1; }; diff --git a/c/src/lib/libbsp/sparc/shared/include/grcan_rasta.h b/c/src/lib/libbsp/sparc/shared/include/grcan_rasta.h index d0b5b66853..1f96da6bef 100644 --- a/c/src/lib/libbsp/sparc/shared/include/grcan_rasta.h +++ b/c/src/lib/libbsp/sparc/shared/include/grcan_rasta.h @@ -8,8 +8,8 @@ extern "C" { #endif -/* Registers the GRCAN for RASTA - * +/* Registers the GRCAN for RASTA + * * rambase is address of the first GRCAN core has it's TX buffer, followed by * it's RX buffer */ diff --git a/c/src/lib/libbsp/sparc/shared/include/grspw.h b/c/src/lib/libbsp/sparc/shared/include/grspw.h index 28260642db..4c6c869d61 100644 --- a/c/src/lib/libbsp/sparc/shared/include/grspw.h +++ b/c/src/lib/libbsp/sparc/shared/include/grspw.h @@ -1,5 +1,5 @@ /* - * Macros used for Spacewire bus + * Macros used for Spacewire bus * * COPYRIGHT (c) 2007. * Gaisler Research @@ -65,26 +65,26 @@ typedef struct { unsigned int linkstart; unsigned int check_rmap_err; /* check incoming packets for rmap errors */ - unsigned int rm_prot_id; /* remove protocol id from incoming packets */ + unsigned int rm_prot_id; /* remove protocol id from incoming packets */ unsigned int tx_blocking; /* use blocking tx */ unsigned int tx_block_on_full; /* block when all tx_buffers are used */ unsigned int rx_blocking; /* block when no data is available */ unsigned int disable_err; /* disable link automatically when link error is detected */ - unsigned int link_err_irq; /* generate an interrupt when link error occurs */ + unsigned int link_err_irq; /* generate an interrupt when link error occurs */ rtems_id event_id; /* task id that should receive link err irq event */ - + unsigned int is_rmap; unsigned int is_rxunaligned; unsigned int is_rmapcrc; - + unsigned int nodemask; } spw_config; #define SPACEWIRE_IOCTRL_SET_NODEADDR 1 #define SPACEWIRE_IOCTRL_SET_RXBLOCK 2 -#define SPACEWIRE_IOCTRL_SET_DESTKEY 4 +#define SPACEWIRE_IOCTRL_SET_DESTKEY 4 #define SPACEWIRE_IOCTRL_SET_CLKDIV 5 -#define SPACEWIRE_IOCTRL_SET_TIMER 6 +#define SPACEWIRE_IOCTRL_SET_TIMER 6 #define SPACEWIRE_IOCTRL_SET_DISCONNECT 7 #define SPACEWIRE_IOCTRL_SET_PROMISCUOUS 8 #define SPACEWIRE_IOCTRL_SET_RMAPEN 9 @@ -114,7 +114,7 @@ typedef struct { int grspw_register(amba_confarea_type *bus); -#if 0 +#if 0 struct grspw_buf; struct grspw_buf { @@ -124,7 +124,7 @@ struct grspw_buf { unsigned int dlen; /* data length of '*data' */ unsigned int max_dlen; /* allocated length of '*data' */ void *data; /* pointer to beginning of cargo data */ - + /* Only used when transmitting */ unsigned int hlen; /* length of header '*header' */ unsigned int max_hlen; /* allocated length of '*header' */ diff --git a/c/src/lib/libbsp/sparc/shared/include/grspw_pci.h b/c/src/lib/libbsp/sparc/shared/include/grspw_pci.h index 7266f1398d..aea50f3791 100644 --- a/c/src/lib/libbsp/sparc/shared/include/grspw_pci.h +++ b/c/src/lib/libbsp/sparc/shared/include/grspw_pci.h @@ -21,7 +21,7 @@ extern "C" { /* Register GRSPW Driver * bus = &amba_conf for LEON3 - * + * * Memory setup: * memarea = 128k aligned pointer to memory (if zero malloc will be used) (as the CPU sees it) * hw_address = address that HW must use to access memarea. (used in the translation process) diff --git a/c/src/lib/libbsp/sparc/shared/include/grspw_rasta.h b/c/src/lib/libbsp/sparc/shared/include/grspw_rasta.h index 2f6f2bd81e..0e4e5bee4d 100644 --- a/c/src/lib/libbsp/sparc/shared/include/grspw_rasta.h +++ b/c/src/lib/libbsp/sparc/shared/include/grspw_rasta.h @@ -21,7 +21,7 @@ extern "C" { /* Register GRSPW Driver * bus = &amba_conf for LEON3 - * + * * Memory setup: * ram_base = 128k aligned pointer to memory (as the CPU sees it) */ diff --git a/c/src/lib/libbsp/sparc/shared/include/i2cmst.h b/c/src/lib/libbsp/sparc/shared/include/i2cmst.h index 63942a45e6..21780ee143 100644 --- a/c/src/lib/libbsp/sparc/shared/include/i2cmst.h +++ b/c/src/lib/libbsp/sparc/shared/include/i2cmst.h @@ -47,7 +47,7 @@ typedef struct gr_i2cmst_regs { #define GRI2C_STS_AL 0x00000020 /* Arbitration lost */ #define GRI2C_STS_TIP 0x00000002 /* Transfer in progress */ #define GRI2C_STS_IF 0x00000001 /* Interrupt flag */ - + #define GRI2C_STATUS_IDLE 0x00000000 /* The OC I2C core will perform a write after a start unless the RD bit @@ -57,7 +57,7 @@ typedef struct gr_i2cmst_regs { typedef struct gr_i2cmst_prv { gr_i2cmst_regs_t *reg_ptr; unsigned int sysfreq; /* System clock frequency in kHz */ - unsigned char sendstart; /* START events are buffered here */ + unsigned char sendstart; /* START events are buffered here */ /* rtems_irq_number irq_number; */ /* rtems_id irq_sema_id; */ } gr_i2cmst_prv_t; diff --git a/c/src/lib/libbsp/sparc/shared/include/occan.h b/c/src/lib/libbsp/sparc/shared/include/occan.h index 227b56f8fb..12ec42a01c 100644 --- a/c/src/lib/libbsp/sparc/shared/include/occan.h +++ b/c/src/lib/libbsp/sparc/shared/include/occan.h @@ -24,7 +24,7 @@ extern "C" { typedef struct { char extended; /* 1= Extended Frame (29-bit id), 0= STD Frame (11-bit id) */ char rtr; /* RTR - Remote Transmission Request */ - char sshot; /* single shot */ + char sshot; /* single shot */ unsigned char len; unsigned char data[8]; unsigned int id; @@ -34,50 +34,50 @@ typedef struct { /* tx/rx stats */ unsigned int rx_msgs; unsigned int tx_msgs; - + /* Error Interrupt counters */ unsigned int err_warn; unsigned int err_dovr; unsigned int err_errp; unsigned int err_arb; unsigned int err_bus; - + /**** BUS ERRORS (err_arb) ****/ - + /* ALC 4-0 */ unsigned int err_arb_bitnum[32]; /* At what bit arbitration is lost */ - + /******************************/ - + /**** BUS ERRORS (err_bus) ****/ - + /* ECC 7-6 */ unsigned int err_bus_bit; /* Bit error */ unsigned int err_bus_form; /* Form Error */ unsigned int err_bus_stuff; /* Stuff Error */ unsigned int err_bus_other; /* Other Error */ - + /* ECC 5 */ unsigned int err_bus_rx; /* Errors during Reception */ unsigned int err_bus_tx; /* Errors during Transmission */ - + /* ECC 4:0 */ unsigned int err_bus_segs[32]; /* Segment (Where in frame error occured) * See OCCAN_SEG_* defines for indexes */ - + /******************************/ - - + + /* total number of interrupts */ unsigned int ints; - + /* software monitoring hw errors */ unsigned int tx_buf_error; - + /* Software fifo overrun */ unsigned int rx_sw_dovr; - + } occan_stats; /* indexes into occan_stats.err_bus_segs[index] */ diff --git a/c/src/lib/libbsp/sparc/shared/include/occan_pci.h b/c/src/lib/libbsp/sparc/shared/include/occan_pci.h index f5da14c679..2f46293af2 100644 --- a/c/src/lib/libbsp/sparc/shared/include/occan_pci.h +++ b/c/src/lib/libbsp/sparc/shared/include/occan_pci.h @@ -29,7 +29,7 @@ int occan_pci_register(amba_confarea_type *bus); * PCI interrupt handler. irq = AMBA IRQ assigned to the OC_CAN device, * is found by reading pending register on IRQMP connected to the OC_CAN * device. - * + * */ void occanpci_interrupt_handler(int irq, void *arg); diff --git a/c/src/lib/libbsp/sparc/shared/include/pci.h b/c/src/lib/libbsp/sparc/shared/include/pci.h index 65c5b9335a..4416f0a2b4 100644 --- a/c/src/lib/libbsp/sparc/shared/include/pci.h +++ b/c/src/lib/libbsp/sparc/shared/include/pci.h @@ -47,7 +47,7 @@ extern "C" { #define PCI_STATUS_FAST_BACK 0x80 /* Accept fast-back to back */ #define PCI_STATUS_PARITY 0x100 /* Detected parity error */ #define PCI_STATUS_DEVSEL_MASK 0x600 /* DEVSEL timing */ -#define PCI_STATUS_DEVSEL_FAST 0x000 +#define PCI_STATUS_DEVSEL_FAST 0x000 #define PCI_STATUS_DEVSEL_MEDIUM 0x200 #define PCI_STATUS_DEVSEL_SLOW 0x400 #define PCI_STATUS_SIG_TARGET_ABORT 0x800 /* Set on target abort */ @@ -76,8 +76,8 @@ extern "C" { /* * Base addresses specify locations in memory or I/O space. - * Decoded size can be determined by writing a value of - * 0xffffffff to the register, and reading it back. Only + * Decoded size can be determined by writing a value of + * 0xffffffff to the register, and reading it back. Only * 1 bits are decoded. */ #define PCI_BASE_ADDRESS_0 0x10 /* 32 bits */ @@ -101,7 +101,7 @@ extern "C" { /* Header type 0 (normal devices) */ #define PCI_CARDBUS_CIS 0x28 #define PCI_SUBSYSTEM_VENDOR_ID 0x2c -#define PCI_SUBSYSTEM_ID 0x2e +#define PCI_SUBSYSTEM_ID 0x2e #define PCI_ROM_ADDRESS 0x30 /* Bits 31..11 are address, 10..1 reserved */ #define PCI_ROM_ADDRESS_ENABLE 0x01 #define PCI_ROM_ADDRESS_MASK (~0x7ffUL) @@ -460,8 +460,8 @@ extern "C" { #define PCI_DEVICE_ID_PCTECH_SAMURAI_1 0x3010 #define PCI_DEVICE_ID_PCTECH_SAMURAI_IDE 0x3020 -#define PCI_VENDOR_ID_DPT 0x1044 -#define PCI_DEVICE_ID_DPT 0xa400 +#define PCI_VENDOR_ID_DPT 0x1044 +#define PCI_DEVICE_ID_DPT 0xa400 #define PCI_VENDOR_ID_OPTI 0x1045 #define PCI_DEVICE_ID_OPTI_92C178 0xc178 @@ -1116,37 +1116,37 @@ typedef struct { extern pci_config BSP_pci_configuration; extern inline int -pci_read_config_byte(unsigned char bus, unsigned char slot, unsigned char function, +pci_read_config_byte(unsigned char bus, unsigned char slot, unsigned char function, unsigned char where, unsigned char * val) { return BSP_pci_configuration.pci_functions->read_config_byte(bus, slot, function, where, val); } extern inline int -pci_read_config_word(unsigned char bus, unsigned char slot, unsigned char function, +pci_read_config_word(unsigned char bus, unsigned char slot, unsigned char function, unsigned char where, unsigned short * val) { return BSP_pci_configuration.pci_functions->read_config_word(bus, slot, function, where, val); } extern inline int -pci_read_config_dword(unsigned char bus, unsigned char slot, unsigned char function, +pci_read_config_dword(unsigned char bus, unsigned char slot, unsigned char function, unsigned char where, unsigned int * val) { return BSP_pci_configuration.pci_functions->read_config_dword(bus, slot, function, where, val); } extern inline int -pci_write_config_byte(unsigned char bus, unsigned char slot, unsigned char function, +pci_write_config_byte(unsigned char bus, unsigned char slot, unsigned char function, unsigned char where, unsigned char val) { return BSP_pci_configuration.pci_functions->write_config_byte(bus, slot, function, where, val); } extern inline int -pci_write_config_word(unsigned char bus, unsigned char slot, unsigned char function, +pci_write_config_word(unsigned char bus, unsigned char slot, unsigned char function, unsigned char where, unsigned short val) { return BSP_pci_configuration.pci_functions->write_config_word(bus, slot, function, where, val); } extern inline int -pci_write_config_dword(unsigned char bus, unsigned char slot, unsigned char function, +pci_write_config_dword(unsigned char bus, unsigned char slot, unsigned char function, unsigned char where, unsigned int val) { return BSP_pci_configuration.pci_functions->write_config_dword(bus, slot, function, where, val); } |