mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-30 15:38:06 +01:00
strict kobj signatures: fix legacy i386 pcib_write_config impl
Reviewed by: imp, current@ Approved by: jhb (mentor)
This commit is contained in:
parent
446188d1e6
commit
ebb6aed490
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194018
@ -43,12 +43,12 @@ LEGACY_ACCESSOR(pcibus, PCIBUS, uint32_t)
|
||||
#undef LEGACY_ACCESSOR
|
||||
|
||||
int legacy_pcib_maxslots(device_t dev);
|
||||
uint32_t legacy_pcib_read_config(device_t dev, int bus, int slot, int func,
|
||||
int reg, int bytes);
|
||||
uint32_t legacy_pcib_read_config(device_t dev, u_int bus, u_int slot, u_int func,
|
||||
u_int reg, int bytes);
|
||||
int legacy_pcib_read_ivar(device_t dev, device_t child, int which,
|
||||
uintptr_t *result);
|
||||
void legacy_pcib_write_config(device_t dev, int bus, int slot, int func,
|
||||
int reg, u_int32_t data, int bytes);
|
||||
void legacy_pcib_write_config(device_t dev, u_int bus, u_int slot, u_int func,
|
||||
u_int reg, u_int32_t data, int bytes);
|
||||
int legacy_pcib_write_ivar(device_t dev, device_t child, int which,
|
||||
uintptr_t value);
|
||||
struct resource *legacy_pcib_alloc_resource(device_t dev, device_t child,
|
||||
|
@ -62,8 +62,8 @@ legacy_pcib_maxslots(device_t dev)
|
||||
/* read configuration space register */
|
||||
|
||||
u_int32_t
|
||||
legacy_pcib_read_config(device_t dev, int bus, int slot, int func,
|
||||
int reg, int bytes)
|
||||
legacy_pcib_read_config(device_t dev, u_int bus, u_int slot, u_int func,
|
||||
u_int reg, int bytes)
|
||||
{
|
||||
return(pci_cfgregread(bus, slot, func, reg, bytes));
|
||||
}
|
||||
@ -71,8 +71,8 @@ legacy_pcib_read_config(device_t dev, int bus, int slot, int func,
|
||||
/* write configuration space register */
|
||||
|
||||
void
|
||||
legacy_pcib_write_config(device_t dev, int bus, int slot, int func,
|
||||
int reg, u_int32_t data, int bytes)
|
||||
legacy_pcib_write_config(device_t dev, u_int bus, u_int slot, u_int func,
|
||||
u_int reg, u_int32_t data, int bytes)
|
||||
{
|
||||
pci_cfgregwrite(bus, slot, func, reg, data, bytes);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user