diff options
author | eivind <eivind@FreeBSD.org> | 1998-02-10 17:36:44 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1998-02-10 17:36:44 +0000 |
commit | 77f6cc7d27bf3a1b831547f1825ffa76a1e3c82c (patch) | |
tree | 343940672e070d1abfbb7224e5c3b255fdc766df /sys/dev/dpt | |
parent | 8e2275ea1819ff18faacbb670d6966cca39d6b7c (diff) | |
download | FreeBSD-src-77f6cc7d27bf3a1b831547f1825ffa76a1e3c82c.zip FreeBSD-src-77f6cc7d27bf3a1b831547f1825ffa76a1e3c82c.tar.gz |
Staticize. (Diffs by me & and Simon in cooperation.)
Diffstat (limited to 'sys/dev/dpt')
-rw-r--r-- | sys/dev/dpt/dpt_control.c | 24 | ||||
-rw-r--r-- | sys/dev/dpt/dpt_pci.c | 14 | ||||
-rw-r--r-- | sys/dev/dpt/dpt_scsi.c | 34 |
3 files changed, 36 insertions, 36 deletions
diff --git a/sys/dev/dpt/dpt_control.c b/sys/dev/dpt/dpt_control.c index 1412c37..e5d04ab 100644 --- a/sys/dev/dpt/dpt_control.c +++ b/sys/dev/dpt/dpt_control.c @@ -36,7 +36,7 @@ * future. */ -#ident "$Id: dpt_control.c,v 1.21 1998/01/23 02:46:51 ShimonR Exp ShimonR $" +#ident "$Id: dpt_control.c,v 1.1 1998/01/26 06:11:17 julian Exp $" #include "opt_dpt.h" @@ -71,7 +71,7 @@ extern char osrelease[]; -dpt_sysinfo_t dpt_sysinfo; +static dpt_sysinfo_t dpt_sysinfo; /* Entry points and other prototypes */ static vm_offset_t dpt_physmap(u_int32_t paddr, vm_size_t size); @@ -81,11 +81,11 @@ static void dpt_get_sysinfo(void); static INLINE dpt_softc_t *dpt_minor2softc(int minor_no); static INLINE int dpt_minor2unit(int minor_no); -int dpt_open(dev_t dev, int flags, int fmt, struct proc * p); -int dpt_close(dev_t dev, int flags, int fmt, struct proc * p); -int dpt_write(dev_t dev, struct uio * uio, int ioflag); -int dpt_read(dev_t dev, struct uio * uio, int ioflag); -int dpt_ioctl(dev_t dev, int cmd, caddr_t cmdarg, int flags, struct proc * p); +static int dpt_open(dev_t dev, int flags, int fmt, struct proc * p); +static int dpt_close(dev_t dev, int flags, int fmt, struct proc * p); +static int dpt_write(dev_t dev, struct uio * uio, int ioflag); +static int dpt_read(dev_t dev, struct uio * uio, int ioflag); +static int dpt_ioctl(dev_t dev, int cmd, caddr_t cmdarg, int flags, struct proc * p); /* This has to be modified as the processor and CPU are not known yet */ @@ -416,7 +416,7 @@ dpt_get_sysinfo(void) dpt_sysinfo.flags |= SI_OSversionValid; } -int +static int dpt_open(dev_t dev, int flags, int fmt, struct proc * p) { int minor_no; @@ -454,7 +454,7 @@ dpt_open(dev_t dev, int flags, int fmt, struct proc * p) return (0); } -int +static int dpt_close(dev_t dev, int flags, int fmt, struct proc * p) { int minor_no; @@ -472,7 +472,7 @@ dpt_close(dev_t dev, int flags, int fmt, struct proc * p) } } -int +static int dpt_write(dev_t dev, struct uio * uio, int ioflag) { int minor_no; @@ -529,7 +529,7 @@ dpt_write(dev_t dev, struct uio * uio, int ioflag) return (error); } -int +static int dpt_read(dev_t dev, struct uio * uio, int ioflag) { dpt_softc_t *dpt; @@ -676,7 +676,7 @@ dpt_read(dev_t dev, struct uio * uio, int ioflag) * if not totally syntatically so. */ -int +static int dpt_ioctl(dev_t dev, int cmd, caddr_t cmdarg, int flags, struct proc * p) { int minor_no; diff --git a/sys/dev/dpt/dpt_pci.c b/sys/dev/dpt/dpt_pci.c index 8ea72bf..a818831 100644 --- a/sys/dev/dpt/dpt_pci.c +++ b/sys/dev/dpt/dpt_pci.c @@ -34,7 +34,7 @@ * caveats: We may need an eisa and an isa files too */ -#ident "$Id: dpt_pci.c,v 1.1 1998/01/26 06:11:17 julian Exp $" +#ident "$Id: dpt_pci.c,v 1.2 1998/02/09 02:31:47 eivind Exp $" #include "opt_devfs.h" #include "opt_dpt.h" @@ -75,9 +75,9 @@ int dpt_controllers_present = 0; /* Function Prototypes */ -char *dpt_pci_probe(pcici_t tag, pcidi_t type); -void dpt_pci_attach(pcici_t config_id, int unit); -int dpt_pci_shutdown(int foo, int bar); +static char *dpt_pci_probe(pcici_t tag, pcidi_t type); +static void dpt_pci_attach(pcici_t config_id, int unit); +static int dpt_pci_shutdown(int foo, int bar); extern struct cdevsw dpt_cdevsw; @@ -98,7 +98,7 @@ DATA_SET(pcidevice_set, dpt_pci_driver); * because we do not know for sure how the two relate. */ -char * +static char * dpt_pci_probe(pcici_t tag, pcidi_t type) { static char silly_message[64]; @@ -172,7 +172,7 @@ dpt_pci_probe(pcici_t tag, pcidi_t type) return (NULL); } -void +static void dpt_pci_attach(pcici_t config_id, int unit) { int ospl; @@ -503,7 +503,7 @@ dpt_pci_attach(pcici_t config_id, int unit) } } -int +static int dpt_pci_shutdown(int foo, int bar) { #ifdef DPT_DEBUG_WARN diff --git a/sys/dev/dpt/dpt_scsi.c b/sys/dev/dpt/dpt_scsi.c index b1d8f35..3d077ce 100644 --- a/sys/dev/dpt/dpt_scsi.c +++ b/sys/dev/dpt/dpt_scsi.c @@ -64,7 +64,7 @@ * 3. dpt_handle_timeouts potentially inserts into the queue */ -#ident "$Id: dpt_scsi.c,v 1.29 1998/01/21 04:32:08 ShimonR Exp $" +#ident "$Id: dpt_scsi.c,v 1.1 1998/01/26 06:11:17 julian Exp $" #define _DPT_C_ #include "opt_dpt.h" @@ -196,20 +196,20 @@ dpt_user_cmd(dpt_softc_t * dpt, eata_pt_t * user_cmd, caddr_t cmdarg, int minor_no); void dpt_detect_cache(dpt_softc_t * dpt); void dpt_shutdown(int howto, void *dpt); -void hex_dump(u_int8_t * data, int length, char *name, int no); +static void hex_dump(u_int8_t * data, int length, char *name, int no); char *i2bin(unsigned int no, int length); dpt_conf_t * dpt_get_conf(dpt_softc_t * dpt, u_int8_t page, u_int8_t target, u_int8_t size, int extent); -dpt_inq_t *dpt_get_board_data(dpt_softc_t * dpt, u_int32_t target_id); +static dpt_inq_t *dpt_get_board_data(dpt_softc_t * dpt, u_int32_t target_id); int dpt_setup(dpt_softc_t * dpt, dpt_conf_t * conf); int dpt_attach(dpt_softc_t * dpt); -int32_t dpt_scsi_cmd(struct scsi_xfer * xs); -void dptminphys(struct buf * bp); -void dpt_sintr(void); +static int32_t dpt_scsi_cmd(struct scsi_xfer * xs); +static void dptminphys(struct buf * bp); +static void dpt_sintr(void); void dpt_intr(void *arg); -char *scsi_cmd_name(u_int8_t cmd); -dpt_rb_t +static char *scsi_cmd_name(u_int8_t cmd); +static dpt_rb_t dpt_register_buffer(int unit, u_int8_t channel, u_int8_t target, @@ -219,7 +219,7 @@ dpt_register_buffer(int unit, u_int16_t offset, dpt_rec_buff callback, dpt_rb_op_t op); -int +static int dpt_send_buffer(int unit, u_int8_t channel, u_int8_t target, @@ -489,7 +489,7 @@ dpt_set_target(int redo, dpt_softc_t * dpt, of receipt of buffers. */ -int +static int dpt_send_buffer(int unit, u_int8_t channel, u_int8_t target, @@ -638,7 +638,7 @@ dpt_target_done(dpt_softc_t * dpt, int bus, dpt_ccb_t * ccb) * by the target mode code. */ -dpt_rb_t +static dpt_rb_t dpt_register_buffer(int unit, u_int8_t channel, u_int8_t target, @@ -1358,7 +1358,7 @@ dpt_setup(dpt_softc_t * dpt, dpt_conf_t * conf) * This function (and its like) assumes it is only running during system * initialization! */ -dpt_inq_t * +static dpt_inq_t * dpt_get_board_data(dpt_softc_t * dpt, u_int32_t target_id) { /* get_conf returns 512 bytes, most of which are zeros... */ @@ -1816,7 +1816,7 @@ dpt_scatter_gather(dpt_softc_t * dpt, dpt_ccb_t * ccb, u_int32_t data_length, * submit it to the HBA. Otherwise we return SUCCESSFULLY_QUEUED. */ -int32_t +static int32_t dpt_scsi_cmd(struct scsi_xfer * xs) { dpt_softc_t *dpt; @@ -2156,7 +2156,7 @@ dpt_scsi_cmd(struct scsi_xfer * xs) * dpt_min_segs, which is the SMALLEST number, from the ``weakest'' HBA found. */ -void +static void dptminphys(struct buf * bp) { /** @@ -2525,7 +2525,7 @@ dpt_intr(void *arg) * This command rns at splSOFTcam. Remember that. */ -void +static void dpt_sintr(void) { dpt_softc_t *dpt; @@ -3357,7 +3357,7 @@ checkit: /** * This function dumps bytes to the screen in hex format. */ -void +static void hex_dump(u_int8_t * data, int length, char *name, int no) { int line, column, ndx; @@ -3497,7 +3497,7 @@ i2bin(unsigned int no, int length) * and [SCSI III documentation section]. */ -char * +static char * scsi_cmd_name(u_int8_t cmd) { switch (cmd) { |