Changeset View
Changeset View
Standalone View
Standalone View
stand/i386/libfirewire/firewire.c
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | struct crom_src_buf { | ||||
struct crom_chunk unit; | struct crom_chunk unit; | ||||
struct crom_chunk spec; | struct crom_chunk spec; | ||||
struct crom_chunk ver; | struct crom_chunk ver; | ||||
}; | }; | ||||
static int fw_init(void); | static int fw_init(void); | ||||
static int fw_strategy(void *devdata, int flag, daddr_t dblk, | static int fw_strategy(void *devdata, int flag, daddr_t dblk, | ||||
size_t size, char *buf, size_t *rsize); | size_t size, char *buf, size_t *rsize); | ||||
static int fw_open(struct open_file *f, ...); | static int fw_open(struct open_file *f, struct devdesc *dev); | ||||
static int fw_close(struct open_file *f); | static int fw_close(struct open_file *f); | ||||
static int fw_print(int verbose); | static int fw_print(int verbose); | ||||
static void fw_cleanup(void); | static void fw_cleanup(void); | ||||
void fw_enable(void); | void fw_enable(void); | ||||
struct devsw fwohci = { | struct devsw fwohci = { | ||||
"FW1394", /* 7 chars at most */ | "FW1394", /* 7 chars at most */ | ||||
▲ Show 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | for (i = 0; i < MAX_OHCI; i ++) { | ||||
ret = pager_output(line); | ret = pager_output(line); | ||||
if (ret != 0) | if (ret != 0) | ||||
break; | break; | ||||
} | } | ||||
return (ret); | return (ret); | ||||
} | } | ||||
static int | static int | ||||
fw_open(struct open_file *f, ...) | fw_open(struct open_file *f, struct devdesc *dev) | ||||
tsoome: we can use __unused there. | |||||
Done Inline ActionsDoesn't need the second argument, right? imp: Doesn't need the second argument, right? | |||||
{ | { | ||||
#if 0 | |||||
va_list ap; | |||||
struct i386_devdesc *dev; | |||||
struct open_disk *od; | |||||
int error; | |||||
va_start(ap, f); | |||||
dev = va_arg(ap, struct i386_devdesc *); | |||||
va_end(ap); | |||||
#endif | |||||
return (ENXIO); | return (ENXIO); | ||||
} | } | ||||
static int | static int | ||||
fw_close(struct open_file *f) | fw_close(struct open_file *f) | ||||
{ | { | ||||
return (0); | return (0); | ||||
▲ Show 20 Lines • Show All 287 Lines • Show Last 20 Lines |
we can use __unused there.