mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-12 14:29:28 +00:00
Non-functional changes to NEWCARD stuff.
This is the first part of a two-part update to NEWCARD. Changes in this commit are non-functional, and includes the following: * indentation and other changes to meet style(9). * other minor style consistancy changes * addition of comments * renaming of device_t variables to be consistant across all of NEWCARD. (note that not all style violations are fixed in this commit -- those that aren't will be clobbered by the next commit.)
This commit is contained in:
parent
255b159f5f
commit
c83acdc307
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82376
@ -65,16 +65,16 @@ METHOD int get_res_flags {
|
||||
METHOD int set_memory_offset {
|
||||
device_t dev;
|
||||
device_t child;
|
||||
int rid;
|
||||
u_int32_t cardaddr;
|
||||
u_int32_t *deltap;
|
||||
int rid;
|
||||
u_int32_t cardaddr;
|
||||
u_int32_t *deltap;
|
||||
}
|
||||
|
||||
METHOD int get_memory_offset {
|
||||
device_t dev;
|
||||
device_t child;
|
||||
int rid;
|
||||
u_int32_t *offset;
|
||||
int rid;
|
||||
u_int32_t *offset;
|
||||
}
|
||||
|
||||
#
|
||||
@ -210,21 +210,21 @@ HEADER {
|
||||
struct cis_tupleinfo {
|
||||
u_int8_t id;
|
||||
int len;
|
||||
char* data;
|
||||
char *data;
|
||||
};
|
||||
};
|
||||
|
||||
CODE {
|
||||
static int
|
||||
null_cis_read(device_t dev, device_t child, u_int8_t id,
|
||||
struct cis_tupleinfo **buff, int* nret)
|
||||
struct cis_tupleinfo **buff, int *nret)
|
||||
{
|
||||
*nret = 0;
|
||||
*buff = NULL;
|
||||
return ENXIO;
|
||||
}
|
||||
static void
|
||||
null_cis_free(device_t dev, struct cis_tupleinfo *buff, int* nret)
|
||||
null_cis_free(device_t dev, struct cis_tupleinfo *buff, int *nret)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -235,14 +235,14 @@ METHOD int cis_read {
|
||||
device_t dev;
|
||||
device_t child;
|
||||
u_int8_t id;
|
||||
struct cis_tupleinfo **buff;
|
||||
int* nret;
|
||||
struct cis_tupleinfo **buff;
|
||||
int *nret;
|
||||
} DEFAULT null_cis_read;
|
||||
|
||||
METHOD int cis_free {
|
||||
device_t dev;
|
||||
struct cis_tupleinfo *buff;
|
||||
int nret;
|
||||
struct cis_tupleinfo *buff;
|
||||
int nret;
|
||||
} DEFAULT null_cis_free;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user