mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-06 09:17:25 +00:00
Fix prototypes to be consistent.
This commit is contained in:
parent
e8fbbcdfb3
commit
cd6d5177a7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189578
@ -295,7 +295,7 @@ agp_generic_detach(device_t dev)
|
||||
* Default AGP aperture size detection which simply returns the size of
|
||||
* the aperture's PCI resource.
|
||||
*/
|
||||
int
|
||||
u_int32_t
|
||||
agp_generic_get_aperture(device_t dev)
|
||||
{
|
||||
struct agp_softc *sc = device_get_softc(dev);
|
||||
|
@ -333,7 +333,7 @@ agp_amd64_set_aperture(device_t dev, uint32_t aperture)
|
||||
}
|
||||
|
||||
static int
|
||||
agp_amd64_bind_page(device_t dev, int offset, vm_offset_t physical)
|
||||
agp_amd64_bind_page(device_t dev, vm_offset_t offset, vm_offset_t physical)
|
||||
{
|
||||
struct agp_amd64_softc *sc = device_get_softc(dev);
|
||||
|
||||
@ -347,7 +347,7 @@ agp_amd64_bind_page(device_t dev, int offset, vm_offset_t physical)
|
||||
}
|
||||
|
||||
static int
|
||||
agp_amd64_unbind_page(device_t dev, int offset)
|
||||
agp_amd64_unbind_page(device_t dev, vm_offset_t offset)
|
||||
{
|
||||
struct agp_amd64_softc *sc = device_get_softc(dev);
|
||||
|
||||
|
@ -836,12 +836,12 @@ agp_i810_write_gtt_entry(device_t dev, int offset, vm_offset_t physical,
|
||||
}
|
||||
|
||||
static int
|
||||
agp_i810_bind_page(device_t dev, int offset, vm_offset_t physical)
|
||||
agp_i810_bind_page(device_t dev, vm_offset_t offset, vm_offset_t physical)
|
||||
{
|
||||
struct agp_i810_softc *sc = device_get_softc(dev);
|
||||
|
||||
if (offset < 0 || offset >= (sc->gatt->ag_entries << AGP_PAGE_SHIFT)) {
|
||||
device_printf(dev, "failed: offset is 0x%08x, shift is %d, entries is %d\n", offset, AGP_PAGE_SHIFT, sc->gatt->ag_entries);
|
||||
device_printf(dev, "failed: offset is 0x%08jx, shift is %d, entries is %d\n", (intmax_t)offset, AGP_PAGE_SHIFT, sc->gatt->ag_entries);
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
@ -858,7 +858,7 @@ agp_i810_bind_page(device_t dev, int offset, vm_offset_t physical)
|
||||
}
|
||||
|
||||
static int
|
||||
agp_i810_unbind_page(device_t dev, int offset)
|
||||
agp_i810_unbind_page(device_t dev, vm_offset_t offset)
|
||||
{
|
||||
struct agp_i810_softc *sc = device_get_softc(dev);
|
||||
|
||||
|
@ -365,7 +365,7 @@ agp_intel_set_aperture(device_t dev, u_int32_t aperture)
|
||||
}
|
||||
|
||||
static int
|
||||
agp_intel_bind_page(device_t dev, int offset, vm_offset_t physical)
|
||||
agp_intel_bind_page(device_t dev, vm_offset_t offset, vm_offset_t physical)
|
||||
{
|
||||
struct agp_intel_softc *sc;
|
||||
|
||||
@ -379,7 +379,7 @@ agp_intel_bind_page(device_t dev, int offset, vm_offset_t physical)
|
||||
}
|
||||
|
||||
static int
|
||||
agp_intel_unbind_page(device_t dev, int offset)
|
||||
agp_intel_unbind_page(device_t dev, vm_offset_t offset)
|
||||
{
|
||||
struct agp_intel_softc *sc;
|
||||
|
||||
|
@ -358,7 +358,7 @@ agp_via_set_aperture(device_t dev, u_int32_t aperture)
|
||||
}
|
||||
|
||||
static int
|
||||
agp_via_bind_page(device_t dev, int offset, vm_offset_t physical)
|
||||
agp_via_bind_page(device_t dev, vm_offset_t offset, vm_offset_t physical)
|
||||
{
|
||||
struct agp_via_softc *sc = device_get_softc(dev);
|
||||
|
||||
@ -370,7 +370,7 @@ agp_via_bind_page(device_t dev, int offset, vm_offset_t physical)
|
||||
}
|
||||
|
||||
static int
|
||||
agp_via_unbind_page(device_t dev, int offset)
|
||||
agp_via_unbind_page(device_t dev, vm_offset_t offset)
|
||||
{
|
||||
struct agp_via_softc *sc = device_get_softc(dev);
|
||||
|
||||
|
@ -92,7 +92,7 @@ void agp_free_gatt(struct agp_gatt *gatt);
|
||||
void agp_free_res(device_t dev);
|
||||
int agp_generic_attach(device_t dev);
|
||||
int agp_generic_detach(device_t dev);
|
||||
int agp_generic_get_aperture(device_t dev);
|
||||
u_int32_t agp_generic_get_aperture(device_t dev);
|
||||
int agp_generic_set_aperture(device_t dev,
|
||||
u_int32_t aperture);
|
||||
int agp_generic_enable(device_t dev, u_int32_t mode);
|
||||
|
Loading…
Reference in New Issue
Block a user