Add some const qualifiers to serveral function parameters.

This commit is contained in:
Ian Romanick 2006-07-14 15:51:55 -07:00
parent 490fb30459
commit 46369350d4
3 changed files with 11 additions and 10 deletions

View File

@ -576,7 +576,7 @@ pciCfg1outb(CARD16 addr, CARD8 val)
} }
CARD8 CARD8
bios_checksum(CARD8 *start, int size) bios_checksum(const CARD8 *start, int size)
{ {
CARD8 sum = 0; CARD8 sum = 0;

View File

@ -224,7 +224,7 @@ xf86HandleInt10Options(ScrnInfoPtr pScrn, int entityIndex)
} }
Bool Bool
int10skip(void* options) int10skip(const void* options)
{ {
Bool noint10 = FALSE; Bool noint10 = FALSE;
@ -235,7 +235,7 @@ int10skip(void* options)
} }
Bool Bool
int10_check_bios(int scrnIndex, int codeSeg, unsigned char* vbiosMem) int10_check_bios(int scrnIndex, int codeSeg, const unsigned char* vbiosMem)
{ {
int size; int size;
@ -262,7 +262,7 @@ int10_check_bios(int scrnIndex, int codeSeg, unsigned char* vbiosMem)
} }
Bool Bool
initPrimary(void* options) initPrimary(const void* options)
{ {
Bool initPrimary = FALSE; Bool initPrimary = FALSE;
@ -281,7 +281,7 @@ initPrimary(void* options)
* be used with extreme care. * be used with extreme care.
*/ */
void void
xf86int10ParseBiosLocation(void* options, xf86int10ParseBiosLocation(const void* options,
xf86int10BiosLocationPtr bios) xf86int10BiosLocationPtr bios)
{ {
const char *p; const char *p;

View File

@ -143,7 +143,7 @@ void dump_code(xf86Int10InfoPtr pInt);
void dump_registers(xf86Int10InfoPtr pInt); void dump_registers(xf86Int10InfoPtr pInt);
void stack_trace(xf86Int10InfoPtr pInt); void stack_trace(xf86Int10InfoPtr pInt);
xf86Int10InfoPtr getInt10Rec(int entityIndex); xf86Int10InfoPtr getInt10Rec(int entityIndex);
CARD8 bios_checksum(CARD8 *start, int size); CARD8 bios_checksum(const CARD8 *start, int size);
void LockLegacyVGA(xf86Int10InfoPtr pInt, legacyVGAPtr vga); void LockLegacyVGA(xf86Int10InfoPtr pInt, legacyVGAPtr vga);
void UnlockLegacyVGA(xf86Int10InfoPtr pInt, legacyVGAPtr vga); void UnlockLegacyVGA(xf86Int10InfoPtr pInt, legacyVGAPtr vga);
#if defined (_PC) #if defined (_PC)
@ -182,10 +182,11 @@ int setup_system_bios(void *base_addr);
void reset_int_vect(xf86Int10InfoPtr pInt); void reset_int_vect(xf86Int10InfoPtr pInt);
void set_return_trap(xf86Int10InfoPtr pInt); void set_return_trap(xf86Int10InfoPtr pInt);
void * xf86HandleInt10Options(ScrnInfoPtr pScrn, int entityIndex); void * xf86HandleInt10Options(ScrnInfoPtr pScrn, int entityIndex);
Bool int10skip(void* options); Bool int10skip(const void* options);
Bool int10_check_bios(int scrnIndex, int codeSeg, unsigned char* vbiosMem); Bool int10_check_bios(int scrnIndex, int codeSeg,
Bool initPrimary(void* options); const unsigned char* vbiosMem);
void xf86int10ParseBiosLocation(void* options, Bool initPrimary(const void* options);
void xf86int10ParseBiosLocation(const void* options,
xf86int10BiosLocationPtr bios); xf86int10BiosLocationPtr bios);
BusType xf86int10GetBiosLocationType(const xf86Int10InfoPtr pInt, BusType xf86int10GetBiosLocationType(const xf86Int10InfoPtr pInt,
const xf86int10BiosLocationPtr bios); const xf86int10BiosLocationPtr bios);