Bug #5 ยป sys.dev.diff
| acpica5/acpi.c 25 Nov 2005 23:57:19 -0000 | ||
|---|---|---|
|
}
|
||
|
static void
|
||
|
acpi_quirks_set()
|
||
|
acpi_quirks_set(void)
|
||
|
{
|
||
|
XSDT_DESCRIPTOR *xsdt;
|
||
|
struct acpi_quirks *quirk;
|
||
| acpica5/acpi_cpu.c 25 Nov 2005 23:58:19 -0000 | ||
|---|---|---|
|
* port.
|
||
|
*/
|
||
|
static void
|
||
|
acpi_cpu_startup_throttling()
|
||
|
acpi_cpu_startup_throttling(void)
|
||
|
{
|
||
|
ACPI_LOCK_DECL;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
acpi_cpu_startup_cx()
|
||
|
acpi_cpu_startup_cx(void)
|
||
|
{
|
||
|
struct acpi_cpu_softc *sc;
|
||
|
struct sbuf sb;
|
||
| ... | ... | |
|
* interrupts are re-enabled.
|
||
|
*/
|
||
|
static void
|
||
|
acpi_cpu_idle()
|
||
|
acpi_cpu_idle(void)
|
||
|
{
|
||
|
struct acpi_cpu_softc *sc;
|
||
|
struct acpi_cx *cx_next;
|
||
| ... | ... | |
|
/* Put the CPU in C1 in a machine-dependant way. */
|
||
|
static void
|
||
|
acpi_cpu_c1()
|
||
|
acpi_cpu_c1(void)
|
||
|
{
|
||
|
#ifdef __ia64__
|
||
|
ia64_call_pal_static(PAL_HALT_LIGHT, 0, 0, 0);
|
||
| acpica5/acpi_timer.c 25 Nov 2005 23:58:41 -0000 | ||
|---|---|---|
|
MODULE_DEPEND(acpi_timer, acpi, 1, 1, 1);
|
||
|
static u_int
|
||
|
acpi_timer_read()
|
||
|
acpi_timer_read(void)
|
||
|
{
|
||
|
return (bus_space_read_4(acpi_timer_bst, acpi_timer_bsh, 0));
|
||
|
}
|
||
| ... | ... | |
|
*/
|
||
|
static int
|
||
|
acpi_timer_test()
|
||
|
acpi_timer_test(void)
|
||
|
{
|
||
|
uint32_t last, this;
|
||
|
int min, max, n, delta;
|
||
| agp/agp.c 26 Nov 2005 00:00:14 -0000 | ||
|---|---|---|
|
/* Helper functions for implementing chipset mini drivers. */
|
||
|
void
|
||
|
agp_flush_cache()
|
||
|
agp_flush_cache(void)
|
||
|
{
|
||
|
#ifdef __i386__
|
||
|
wbinvd();
|
||
| ... | ... | |
|
/* Implementation of the kernel api */
|
||
|
device_t
|
||
|
agp_find_device()
|
||
|
agp_find_device(void)
|
||
|
{
|
||
|
if (!agp_devclass)
|
||
|
return 0;
|
||
| disk/aic7xxx/aicasm/aicasm.c 26 Nov 2005 00:03:51 -0000 | ||
|---|---|---|
|
}
|
||
|
static void
|
||
|
usage()
|
||
|
usage(void)
|
||
|
{
|
||
|
(void)fprintf(stderr,
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
back_patch()
|
||
|
back_patch(void)
|
||
|
{
|
||
|
struct instruction *cur_instr;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
output_code()
|
||
|
output_code(void)
|
||
|
{
|
||
|
struct instruction *cur_instr;
|
||
|
patch_t *cur_patch;
|
||
| ... | ... | |
|
}
|
||
|
struct instruction *
|
||
|
seq_alloc()
|
||
|
seq_alloc(void)
|
||
|
{
|
||
|
struct instruction *new_instr;
|
||
| ... | ... | |
|
}
|
||
|
critical_section_t *
|
||
|
cs_alloc()
|
||
|
cs_alloc(void)
|
||
|
{
|
||
|
critical_section_t *new_cs;
|
||
| ... | ... | |
|
}
|
||
|
scope_t *
|
||
|
scope_alloc()
|
||
|
scope_alloc(void)
|
||
|
{
|
||
|
scope_t *new_scope;
|
||
| disk/aic7xxx/aicasm/aicasm_macro_scan.l 8 Dec 2005 22:14:39 -0000 | ||
|---|---|---|
|
%%
|
||
|
int
|
||
|
mmwrap()
|
||
|
mmwrap(void)
|
||
|
{
|
||
|
stop("EOF encountered in macro call", EX_DATAERR);
|
||
|
}
|
||
| disk/aic7xxx/aicasm/aicasm_scan.l 8 Dec 2005 22:15:05 -0000 | ||
|---|---|---|
|
}
|
||
|
int
|
||
|
yywrap()
|
||
|
yywrap(void)
|
||
|
{
|
||
|
include_t *include;
|
||
| disk/aic7xxx/aicasm/aicasm_symbol.c 26 Nov 2005 00:04:15 -0000 | ||
|---|---|---|
|
}
|
||
|
void
|
||
|
symtable_open()
|
||
|
symtable_open(void)
|
||
|
{
|
||
|
symtable = dbopen(/*filename*/NULL,
|
||
|
O_CREAT | O_NONBLOCK | O_RDWR, /*mode*/0, DB_HASH,
|
||
| ... | ... | |
|
}
|
||
|
void
|
||
|
symtable_close()
|
||
|
symtable_close(void)
|
||
|
{
|
||
|
if (symtable != NULL) {
|
||
|
DBT key;
|
||
| disk/ccd/ccd.c 26 Nov 2005 00:09:59 -0000 | ||
|---|---|---|
|
* add devsw entries.
|
||
|
*/
|
||
|
static void
|
||
|
ccdattach()
|
||
|
ccdattach(void)
|
||
|
{
|
||
|
int i;
|
||
|
int num = NCCD;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
ccd_modevent(mod, type, data)
|
||
|
module_t mod;
|
||
|
int type;
|
||
|
void *data;
|
||
|
ccd_modevent(module_t mod, int type, void *data)
|
||
|
{
|
||
|
int error = 0;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
ccdinterleave(cs, unit)
|
||
|
struct ccd_softc *cs;
|
||
|
int unit;
|
||
|
ccdinterleave(struct ccd_softc *cs, int unit)
|
||
|
{
|
||
|
struct ccdcinfo *ci, *smallci;
|
||
|
struct ccdiinfo *ii;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
ccdstrategy(bp)
|
||
|
struct buf *bp;
|
||
|
ccdstrategy(struct buf *bp)
|
||
|
{
|
||
|
int unit = ccdunit(bp->b_dev);
|
||
|
struct ccd_softc *cs = &ccd_softc[unit];
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
ccdstart(cs, bp)
|
||
|
struct ccd_softc *cs;
|
||
|
struct buf *bp;
|
||
|
ccdstart(struct ccd_softc *cs, struct buf *bp)
|
||
|
{
|
||
|
long bcount, rcount;
|
||
|
struct ccdbuf *cbp[4];
|
||
| ... | ... | |
|
* Build a component buffer header.
|
||
|
*/
|
||
|
static void
|
||
|
ccdbuffer(cb, cs, bp, bn, addr, bcount)
|
||
|
struct ccdbuf **cb;
|
||
|
struct ccd_softc *cs;
|
||
|
struct buf *bp;
|
||
|
daddr_t bn;
|
||
|
caddr_t addr;
|
||
|
long bcount;
|
||
|
ccdbuffer(struct ccdbuf **cb, struct ccd_softc *cs, struct buf *bp, daddr_t bn,
|
||
|
caddr_t addr, long bcount)
|
||
|
{
|
||
|
struct ccdcinfo *ci, *ci2 = NULL; /* XXX */
|
||
|
struct ccdbuf *cbp;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
ccdintr(cs, bp)
|
||
|
struct ccd_softc *cs;
|
||
|
struct buf *bp;
|
||
|
ccdintr(struct ccd_softc *cs, struct buf *bp)
|
||
|
{
|
||
|
#ifdef DEBUG
|
||
|
if (ccddebug & CCDB_FOLLOW)
|
||
| ... | ... | |
|
* take a ccd interrupt.
|
||
|
*/
|
||
|
static void
|
||
|
ccdiodone(cbp)
|
||
|
struct ccdbuf *cbp;
|
||
|
ccdiodone(struct ccdbuf *cbp)
|
||
|
{
|
||
|
struct buf *bp = cbp->cb_obp;
|
||
|
int unit = cbp->cb_unit;
|
||
| ... | ... | |
|
* up.
|
||
|
*/
|
||
|
static void
|
||
|
ccdgetdisklabel(dev)
|
||
|
dev_t dev;
|
||
|
ccdgetdisklabel(dev_t dev)
|
||
|
{
|
||
|
int unit = ccdunit(dev);
|
||
|
struct ccd_softc *cs = &ccd_softc[unit];
|
||
| ... | ... | |
|
* that a disklabel isn't present.
|
||
|
*/
|
||
|
static void
|
||
|
ccdmakedisklabel(cs)
|
||
|
struct ccd_softc *cs;
|
||
|
ccdmakedisklabel(struct ccd_softc *cs)
|
||
|
{
|
||
|
struct disklabel *lp = &cs->sc_label;
|
||
| ... | ... | |
|
* Several drivers do this; it should be abstracted and made MP-safe.
|
||
|
*/
|
||
|
static int
|
||
|
ccdlock(cs)
|
||
|
struct ccd_softc *cs;
|
||
|
ccdlock(struct ccd_softc *cs)
|
||
|
{
|
||
|
int error;
|
||
| ... | ... | |
|
* Unlock and wake up any waiters.
|
||
|
*/
|
||
|
static void
|
||
|
ccdunlock(cs)
|
||
|
struct ccd_softc *cs;
|
||
|
ccdunlock(struct ccd_softc *cs)
|
||
|
{
|
||
|
cs->sc_flags &= ~CCDF_LOCKED;
|
||
| ... | ... | |
|
#ifdef DEBUG
|
||
|
static void
|
||
|
printiinfo(ii)
|
||
|
struct ccdiinfo *ii;
|
||
|
printiinfo(struct ccdiinfo *ii)
|
||
|
{
|
||
|
int ix, i;
|
||
| disk/ncv/ncr53c500.c 26 Nov 2005 00:19:10 -0000 | ||
|---|---|---|
|
* hwfuncs
|
||
|
**************************************************************/
|
||
|
static __inline void
|
||
|
ncvhw_select_register_0(iot, ioh, hw)
|
||
|
bus_space_tag_t iot;
|
||
|
bus_space_handle_t ioh;
|
||
|
struct ncv_hw *hw;
|
||
|
ncvhw_select_register_0(bus_space_tag_t iot, bus_space_handle_t ioh,
|
||
|
struct ncv_hw *hw)
|
||
|
{
|
||
|
bus_space_write_1(iot, ioh, cr0_cfg4, hw->hw_cfg4);
|
||
|
}
|
||
|
static __inline void
|
||
|
ncvhw_select_register_1(iot, ioh, hw)
|
||
|
bus_space_tag_t iot;
|
||
|
bus_space_handle_t ioh;
|
||
|
struct ncv_hw *hw;
|
||
|
ncvhw_select_register_1(bus_space_tag_t iot, bus_space_handle_t ioh,
|
||
|
struct ncv_hw *hw)
|
||
|
{
|
||
|
bus_space_write_1(iot, ioh, cr1_cfg5, hw->hw_cfg5);
|
||
|
}
|
||
|
static __inline void
|
||
|
ncvhw_fpush(iot, ioh, buf, len)
|
||
|
bus_space_tag_t iot;
|
||
|
bus_space_handle_t ioh;
|
||
|
u_int8_t *buf;
|
||
|
int len;
|
||
|
ncvhw_fpush(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t *buf,
|
||
|
int len)
|
||
|
{
|
||
|
int ptr;
|
||
| ... | ... | |
|
}
|
||
|
static __inline void
|
||
|
ncvhw_set_count(iot, ioh, count)
|
||
|
bus_space_tag_t iot;
|
||
|
bus_space_handle_t ioh;
|
||
|
int count;
|
||
|
ncvhw_set_count(bus_space_tag_t iot, bus_space_handle_t ioh, int count)
|
||
|
{
|
||
|
bus_space_write_1(iot, ioh, cr0_tclsb, (u_int8_t) count);
|
||
| ... | ... | |
|
}
|
||
|
static __inline u_int
|
||
|
ncvhw_get_count(iot, ioh)
|
||
|
bus_space_tag_t iot;
|
||
|
bus_space_handle_t ioh;
|
||
|
ncvhw_get_count(bus_space_tag_t iot, bus_space_handle_t ioh)
|
||
|
{
|
||
|
u_int count;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
ncvhw_check(iot, ioh, hw)
|
||
|
bus_space_tag_t iot;
|
||
|
bus_space_handle_t ioh;
|
||
|
struct ncv_hw *hw;
|
||
|
ncvhw_check(bus_space_tag_t iot, bus_space_handle_t ioh, struct ncv_hw *hw)
|
||
|
{
|
||
|
u_int8_t stat;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
ncvhw_reset(iot, ioh, hw)
|
||
|
bus_space_tag_t iot;
|
||
|
bus_space_handle_t ioh;
|
||
|
struct ncv_hw *hw;
|
||
|
ncvhw_reset(bus_space_tag_t iot, bus_space_handle_t ioh,
|
||
|
struct ncv_hw *hw)
|
||
|
{
|
||
|
ncvhw_select_register_0(iot, ioh, hw);
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
ncvhw_init(iot, ioh, hw)
|
||
|
bus_space_tag_t iot;
|
||
|
bus_space_handle_t ioh;
|
||
|
struct ncv_hw *hw;
|
||
|
ncvhw_init(bus_space_tag_t iot, bus_space_handle_t ioh,
|
||
|
struct ncv_hw *hw)
|
||
|
{
|
||
|
ncvhw_select_register_0(iot, ioh, hw);
|
||
| ... | ... | |
|
#ifdef NCV_POWER_CONTROL
|
||
|
static int
|
||
|
ncvhw_power(sc, flags)
|
||
|
struct ncv_softc *sc;
|
||
|
u_int flags;
|
||
|
ncvhw_power(struct ncv_softc *sc, u_int flags)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
| ... | ... | |
|
* scsi low interface
|
||
|
**************************************************************/
|
||
|
static void
|
||
|
ncvhw_attention(sc)
|
||
|
struct ncv_softc *sc;
|
||
|
ncvhw_attention(struct ncv_softc *sc)
|
||
|
{
|
||
|
bus_space_write_1(sc->sc_iot, sc->sc_ioh, cr0_cmd, CMD_SETATN);
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
ncvhw_bus_reset(sc)
|
||
|
struct ncv_softc *sc;
|
||
|
ncvhw_bus_reset(struct ncv_softc *sc)
|
||
|
{
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
|
bus_space_handle_t ioh = sc->sc_ioh;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
ncvhw_start_selection(sc, cb)
|
||
|
struct ncv_softc *sc;
|
||
|
struct slccb *cb;
|
||
|
ncvhw_start_selection(struct ncv_softc *sc, struct slccb *cb)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
ncv_world_start(sc, fdone)
|
||
|
struct ncv_softc *sc;
|
||
|
int fdone;
|
||
|
ncv_world_start(struct ncv_softc *sc, int fdone)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
ncv_msg(sc, ti, msg)
|
||
|
struct ncv_softc *sc;
|
||
|
struct targ_info *ti;
|
||
|
u_int msg;
|
||
|
ncv_msg(struct ncv_softc *sc, struct targ_info *ti, u_int msg)
|
||
|
{
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
|
bus_space_handle_t ioh = sc->sc_ioh;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
ncv_targ_init(sc, ti, action)
|
||
|
struct ncv_softc *sc;
|
||
|
struct targ_info *ti;
|
||
|
int action;
|
||
|
ncv_targ_init(struct ncv_softc *sc, struct targ_info *ti, int action)
|
||
|
{
|
||
|
struct ncv_targ_info *nti = (void *) ti;
|
||
| ... | ... | |
|
static int ncv_setup_img (struct ncv_hw *, u_int, int);
|
||
|
static int
|
||
|
ncv_setup_img(hw, dvcfg, hostid)
|
||
|
struct ncv_hw *hw;
|
||
|
u_int dvcfg;
|
||
|
int hostid;
|
||
|
ncv_setup_img(struct ncv_hw *hw, u_int dvcfg, int hostid)
|
||
|
{
|
||
|
if (NCV_CLKFACTOR(dvcfg) > CLK_35M_F)
|
||
| ... | ... | |
|
}
|
||
|
int
|
||
|
ncvprobesubr(iot, ioh, dvcfg, hsid)
|
||
|
bus_space_tag_t iot;
|
||
|
bus_space_handle_t ioh;
|
||
|
u_int dvcfg;
|
||
|
int hsid;
|
||
|
ncvprobesubr(bus_space_tag_t iot, bus_space_handle_t ioh, u_int dvcfg,
|
||
|
int hsid)
|
||
|
{
|
||
|
struct ncv_hw hwtab;
|
||
| ... | ... | |
|
}
|
||
|
int
|
||
|
ncvprint(aux, name)
|
||
|
void *aux;
|
||
|
const char *name;
|
||
|
ncvprint(void *aux, const char *name)
|
||
|
{
|
||
|
if (name != NULL)
|
||
| ... | ... | |
|
}
|
||
|
void
|
||
|
ncvattachsubr(sc)
|
||
|
struct ncv_softc *sc;
|
||
|
ncvattachsubr(struct ncv_softc *sc)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
| ... | ... | |
|
* PDMA
|
||
|
**************************************************************/
|
||
|
static __inline void
|
||
|
ncv_setup_and_start_pio(sc, reqlen)
|
||
|
struct ncv_softc *sc;
|
||
|
u_int reqlen;
|
||
|
ncv_setup_and_start_pio(struct ncv_softc *sc, u_int reqlen)
|
||
|
{
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
|
bus_space_handle_t ioh = sc->sc_ioh;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
ncv_pdma_end(sc, ti)
|
||
|
struct ncv_softc *sc;
|
||
|
struct targ_info *ti;
|
||
|
ncv_pdma_end(struct ncv_softc *sc, struct targ_info *ti)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
ncv_pio_read(sc, buf, reqlen)
|
||
|
struct ncv_softc *sc;
|
||
|
u_int8_t *buf;
|
||
|
u_int reqlen;
|
||
|
ncv_pio_read(struct ncv_softc *sc, u_int8_t *buf, u_int reqlen)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
ncv_pio_write(sc, buf, reqlen)
|
||
|
struct ncv_softc *sc;
|
||
|
u_int8_t *buf;
|
||
|
u_int reqlen;
|
||
|
ncv_pio_write(struct ncv_softc *sc, u_int8_t *buf, u_int reqlen)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
| ... | ... | |
|
* disconnect & reselect (HW low)
|
||
|
**************************************************************/
|
||
|
static int
|
||
|
ncv_reselected(sc)
|
||
|
struct ncv_softc *sc;
|
||
|
ncv_reselected(struct ncv_softc *sc)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
ncv_disconnected(sc, ti)
|
||
|
struct ncv_softc *sc;
|
||
|
struct targ_info *ti;
|
||
|
ncv_disconnected(struct ncv_softc *sc, struct targ_info *ti)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
| ... | ... | |
|
* SEQUENCER
|
||
|
**************************************************************/
|
||
|
static int
|
||
|
ncv_target_nexus_establish(sc)
|
||
|
struct ncv_softc *sc;
|
||
|
ncv_target_nexus_establish(struct ncv_softc *sc)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
struct targ_info *ti = slp->sl_Tnexus;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
ncv_lun_nexus_establish(sc)
|
||
|
struct ncv_softc *sc;
|
||
|
ncv_lun_nexus_establish(struct ncv_softc *sc)
|
||
|
{
|
||
|
return 0;
|
||
|
}
|
||
|
static int
|
||
|
ncv_ccb_nexus_establish(sc)
|
||
|
struct ncv_softc *sc;
|
||
|
ncv_ccb_nexus_establish(struct ncv_softc *sc)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
struct slccb *cb = slp->sl_Qnexus;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
ncv_catch_intr(sc)
|
||
|
struct ncv_softc *sc;
|
||
|
ncv_catch_intr(struct ncv_softc *sc)
|
||
|
{
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
|
bus_space_handle_t ioh = sc->sc_ioh;
|
||
| ... | ... | |
|
}
|
||
|
int
|
||
|
ncvintr(arg)
|
||
|
void *arg;
|
||
|
ncvintr(void *arg)
|
||
|
{
|
||
|
struct ncv_softc *sc = arg;
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
| disk/nsp/nsp.c 26 Nov 2005 00:38:58 -0000 | ||
|---|---|---|
|
static __inline void nsp_cr_write_1 (bus_space_tag_t bst, bus_space_handle_t bsh, bus_addr_t ofs, u_int8_t va);
|
||
|
static __inline u_int8_t
|
||
|
nsp_cr_read_1(bst, bsh, ofs)
|
||
|
bus_space_tag_t bst;
|
||
|
bus_space_handle_t bsh;
|
||
|
bus_addr_t ofs;
|
||
|
nsp_cr_read_1(bus_space_tag_t bst, bus_space_handle_t bsh, bus_addr_t ofs)
|
||
|
{
|
||
|
|
||
|
bus_space_write_1(bst, bsh, nsp_idxr, ofs);
|
||
| ... | ... | |
|
}
|
||
|
static __inline void
|
||
|
nsp_cr_write_1(bst, bsh, ofs, va)
|
||
|
bus_space_tag_t bst;
|
||
|
bus_space_handle_t bsh;
|
||
|
bus_addr_t ofs;
|
||
|
u_int8_t va;
|
||
|
nsp_cr_write_1(bus_space_tag_t bst, bus_space_handle_t bsh, bus_addr_t ofs,
|
||
|
u_int8_t va)
|
||
|
{
|
||
|
bus_space_write_1(bst, bsh, nsp_idxr, ofs);
|
||
| ... | ... | |
|
}
|
||
|
|
||
|
static int
|
||
|
nsp_expect_signal(sc, curphase, mask)
|
||
|
struct nsp_softc *sc;
|
||
|
u_int8_t curphase, mask;
|
||
|
nsp_expect_signal(struct nsp_softc *sc, u_int8_t curphase, u_int8_t mask)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
nsphw_init(sc)
|
||
|
struct nsp_softc *sc;
|
||
|
nsphw_init(struct nsp_softc *sc)
|
||
|
{
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
|
bus_space_handle_t bsh = sc->sc_ioh;
|
||
| ... | ... | |
|
* scsi low interface
|
||
|
****************************************************/
|
||
|
static void
|
||
|
nsphw_attention(sc)
|
||
|
struct nsp_softc *sc;
|
||
|
nsphw_attention(struct nsp_softc *sc)
|
||
|
{
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
|
bus_space_handle_t bsh = sc->sc_ioh;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
nsphw_bus_reset(sc)
|
||
|
struct nsp_softc *sc;
|
||
|
nsphw_bus_reset(struct nsp_softc *sc)
|
||
|
{
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
|
bus_space_handle_t bsh = sc->sc_ioh;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
nsphw_selection_done_and_expect_msgout(sc)
|
||
|
struct nsp_softc *sc;
|
||
|
nsphw_selection_done_and_expect_msgout(struct nsp_softc *sc)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
nsphw_start_selection(sc, cb)
|
||
|
struct nsp_softc *sc;
|
||
|
struct slccb *cb;
|
||
|
nsphw_start_selection(struct nsp_softc *sc, struct slccb *cb)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
nsp_world_start(sc, fdone)
|
||
|
struct nsp_softc *sc;
|
||
|
int fdone;
|
||
|
nsp_world_start(struct nsp_softc *sc, int fdone)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
| ... | ... | |
|
};
|
||
|
static int
|
||
|
nsp_msg(sc, ti, msg)
|
||
|
struct nsp_softc *sc;
|
||
|
struct targ_info *ti;
|
||
|
u_int msg;
|
||
|
nsp_msg(struct nsp_softc *sc, struct targ_info *ti, u_int msg)
|
||
|
{
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
|
bus_space_handle_t bsh = sc->sc_ioh;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
nsp_targ_init(sc, ti, action)
|
||
|
struct nsp_softc *sc;
|
||
|
struct targ_info *ti;
|
||
|
int action;
|
||
|
nsp_targ_init(struct nsp_softc *sc, struct targ_info *ti, int action)
|
||
|
{
|
||
|
struct nsp_targ_info *nti = (void *) ti;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
nsp_start_timer(sc, time)
|
||
|
struct nsp_softc *sc;
|
||
|
int time;
|
||
|
nsp_start_timer(struct nsp_softc *sc, int time)
|
||
|
{
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
|
bus_space_handle_t bsh = sc->sc_ioh;
|
||
| ... | ... | |
|
* General probe attach
|
||
|
**************************************************************/
|
||
|
int
|
||
|
nspprobesubr(iot, ioh, dvcfg)
|
||
|
bus_space_tag_t iot;
|
||
|
bus_space_handle_t ioh;
|
||
|
u_int dvcfg;
|
||
|
nspprobesubr(bus_space_tag_t iot, bus_space_handle_t ioh, u_int dvcfg)
|
||
|
{
|
||
|
u_int8_t regv;
|
||
| ... | ... | |
|
}
|
||
|
int
|
||
|
nspprint(aux, name)
|
||
|
void *aux;
|
||
|
const char *name;
|
||
|
nspprint(void *aux, const char *name)
|
||
|
{
|
||
|
if (name != NULL)
|
||
| ... | ... | |
|
}
|
||
|
void
|
||
|
nspattachsubr(sc)
|
||
|
struct nsp_softc *sc;
|
||
|
nspattachsubr(struct nsp_softc *sc)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
| ... | ... | |
|
* PDMA functions
|
||
|
**************************************************************/
|
||
|
static u_int
|
||
|
nsp_fifo_count(sc)
|
||
|
struct nsp_softc *sc;
|
||
|
nsp_fifo_count(struct nsp_softc *sc)
|
||
|
{
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
|
bus_space_handle_t bsh = sc->sc_ioh;
|
||
| ... | ... | |
|
}
|
||
|
static u_int
|
||
|
nsp_request_count(sc)
|
||
|
struct nsp_softc *sc;
|
||
|
nsp_request_count(struct nsp_softc *sc)
|
||
|
{
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
|
bus_space_handle_t bsh = sc->sc_ioh;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
nsp_setup_fifo(sc, on, direction, datalen)
|
||
|
struct nsp_softc *sc;
|
||
|
int on;
|
||
|
int direction;
|
||
|
int datalen;
|
||
|
nsp_setup_fifo(struct nsp_softc *sc, int on, int direction, int datalen)
|
||
|
{
|
||
|
u_int8_t xfermode;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
nsp_pdma_end(sc, ti)
|
||
|
struct nsp_softc *sc;
|
||
|
struct targ_info *ti;
|
||
|
nsp_pdma_end(struct nsp_softc *sc, struct targ_info *ti)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
struct slccb *cb = slp->sl_Qnexus;
|
||
| ... | ... | |
|
#define WFIFO_CRIT 32
|
||
|
static void
|
||
|
nsp_data_padding(sc, direction, count)
|
||
|
struct nsp_softc *sc;
|
||
|
int direction;
|
||
|
u_int count;
|
||
|
nsp_data_padding(struct nsp_softc *sc, int direction, u_int count)
|
||
|
{
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
|
bus_space_handle_t bsh = sc->sc_ioh;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
nsp_read_fifo(sc, suspendio)
|
||
|
struct nsp_softc *sc;
|
||
|
int suspendio;
|
||
|
nsp_read_fifo(struct nsp_softc *sc, int suspendio)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
nsp_write_fifo(sc, suspendio)
|
||
|
struct nsp_softc *sc;
|
||
|
int suspendio;
|
||
|
nsp_write_fifo(struct nsp_softc *sc, int suspendio)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
nsp_wait_interrupt(sc)
|
||
|
struct nsp_softc *sc;
|
||
|
nsp_wait_interrupt(struct nsp_softc *sc)
|
||
|
{
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
|
bus_space_handle_t bsh = sc->sc_ioh;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
nsp_pio_read(sc, suspendio)
|
||
|
struct nsp_softc *sc;
|
||
|
int suspendio;
|
||
|
nsp_pio_read(struct nsp_softc *sc, int suspendio)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
nsp_pio_write(sc, suspendio)
|
||
|
struct nsp_softc *sc;
|
||
|
int suspendio;
|
||
|
nsp_pio_write(struct nsp_softc *sc, int suspendio)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
nsp_negate_signal(sc, mask, s)
|
||
|
struct nsp_softc *sc;
|
||
|
u_int8_t mask;
|
||
|
u_char *s;
|
||
|
nsp_negate_signal(struct nsp_softc *sc, u_int8_t mask, u_char *s)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
nsp_xfer(sc, buf, len, phase, clear_atn)
|
||
|
struct nsp_softc *sc;
|
||
|
u_int8_t *buf;
|
||
|
int len;
|
||
|
int phase;
|
||
|
int clear_atn;
|
||
|
nsp_xfer(struct nsp_softc *sc, u_int8_t *buf, int len, int phase,
|
||
|
int clear_atn)
|
||
|
{
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
|
bus_space_handle_t bsh = sc->sc_ioh;
|
||
| ... | ... | |
|
* disconnect & reselect (HW low)
|
||
|
**************************************************************/
|
||
|
static int
|
||
|
nsp_reselected(sc)
|
||
|
struct nsp_softc *sc;
|
||
|
nsp_reselected(struct nsp_softc *sc)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
nsp_disconnected(sc, ti)
|
||
|
struct nsp_softc *sc;
|
||
|
struct targ_info *ti;
|
||
|
nsp_disconnected(struct nsp_softc *sc, struct targ_info *ti)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
| ... | ... | |
|
static void nsp_error (struct nsp_softc *, u_char *, u_int8_t, u_int8_t, u_int8_t);
|
||
|
static void
|
||
|
nsp_error(sc, s, isrc, ph, irqphs)
|
||
|
struct nsp_softc *sc;
|
||
|
u_char *s;
|
||
|
u_int8_t isrc, ph, irqphs;
|
||
|
nsp_error(struct nsp_softc *sc, u_char *s, u_int8_t isrc, u_int8_t ph,
|
||
|
u_int8_t irqphs)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
nsp_target_nexus_establish(sc)
|
||
|
struct nsp_softc *sc;
|
||
|
nsp_target_nexus_establish(struct nsp_softc *sc)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
nsp_lun_nexus_establish(sc)
|
||
|
struct nsp_softc *sc;
|
||
|
nsp_lun_nexus_establish(struct nsp_softc *sc)
|
||
|
{
|
||
|
return 0;
|
||
|
}
|
||
|
static int
|
||
|
nsp_ccb_nexus_establish(sc)
|
||
|
struct nsp_softc *sc;
|
||
|
nsp_ccb_nexus_establish(struct nsp_softc *sc)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
struct slccb *cb = slp->sl_Qnexus;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
nsp_phase_match(sc, phase, stat)
|
||
|
struct nsp_softc *sc;
|
||
|
u_int8_t phase;
|
||
|
u_int8_t stat;
|
||
|
nsp_phase_match(struct nsp_softc *sc, u_int8_t phase, u_int8_t stat)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
| ... | ... | |
|
}
|
||
|
int
|
||
|
nspintr(arg)
|
||
|
void *arg;
|
||
|
nspintr(void *arg)
|
||
|
{
|
||
|
struct nsp_softc *sc = arg;
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
nsp_timeout(sc)
|
||
|
struct nsp_softc *sc;
|
||
|
nsp_timeout(struct nsp_softc *sc)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
| disk/stg/tmc18c30.c 26 Nov 2005 00:45:22 -0000 | ||
|---|---|---|
|
* hwfuncs
|
||
|
****************************************************/
|
||
|
static __inline void
|
||
|
stghw_bcr_write_1(sc, bcv)
|
||
|
struct stg_softc *sc;
|
||
|
u_int8_t bcv;
|
||
|
stghw_bcr_write_1(struct stg_softc *sc, u_int8_t bcv)
|
||
|
{
|
||
|
bus_space_write_1(sc->sc_iot, sc->sc_ioh, tmc_bctl, bcv);
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
stghw_check(sc)
|
||
|
struct stg_softc *sc;
|
||
|
stghw_check(struct stg_softc *sc)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
stghw_init(sc)
|
||
|
struct stg_softc *sc;
|
||
|
stghw_init(struct stg_softc *sc)
|
||
|
{
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
|
bus_space_handle_t ioh = sc->sc_ioh;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
stg_targ_init(sc, ti, action)
|
||
|
struct stg_softc *sc;
|
||
|
struct targ_info *ti;
|
||
|
int action;
|
||
|
stg_targ_init(struct stg_softc *sc, struct targ_info *ti, int action)
|
||
|
{
|
||
|
struct stg_targ_info *sti = (void *) ti;
|
||
| ... | ... | |
|
* scsi low interface
|
||
|
****************************************************/
|
||
|
static void
|
||
|
stghw_attention(sc)
|
||
|
struct stg_softc *sc;
|
||
|
stghw_attention(struct stg_softc *sc)
|
||
|
{
|
||
|
sc->sc_busc |= BCTL_ATN;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
stghw_bus_reset(sc)
|
||
|
struct stg_softc *sc;
|
||
|
stghw_bus_reset(struct stg_softc *sc)
|
||
|
{
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
|
bus_space_handle_t ioh = sc->sc_ioh;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
stghw_start_selection(sc, cb)
|
||
|
struct stg_softc *sc;
|
||
|
struct slccb *cb;
|
||
|
stghw_start_selection(struct stg_softc *sc, struct slccb *cb)
|
||
|
{
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
|
bus_space_handle_t ioh = sc->sc_ioh;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
stg_world_start(sc, fdone)
|
||
|
struct stg_softc *sc;
|
||
|
int fdone;
|
||
|
stg_world_start(struct stg_softc *sc, int fdone)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
int error;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
stg_msg(sc, ti, msg)
|
||
|
struct stg_softc *sc;
|
||
|
struct targ_info *ti;
|
||
|
u_int msg;
|
||
|
stg_msg(struct stg_softc *sc, struct targ_info *ti, u_int msg)
|
||
|
{
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
|
bus_space_handle_t ioh = sc->sc_ioh;
|
||
| ... | ... | |
|
* General probe attach
|
||
|
**************************************************************/
|
||
|
int
|
||
|
stgprobesubr(iot, ioh, dvcfg)
|
||
|
bus_space_tag_t iot;
|
||
|
bus_space_handle_t ioh;
|
||
|
u_int dvcfg;
|
||
|
stgprobesubr(bus_space_tag_t iot, bus_space_handle_t ioh, u_int dvcfg)
|
||
|
{
|
||
|
u_int16_t lsb, msb;
|
||
| ... | ... | |
|
}
|
||
|
int
|
||
|
stgprint(aux, name)
|
||
|
void *aux;
|
||
|
const char *name;
|
||
|
stgprint(void *aux, const char *name)
|
||
|
{
|
||
|
if (name != NULL)
|
||
| ... | ... | |
|
}
|
||
|
void
|
||
|
stgattachsubr(sc)
|
||
|
struct stg_softc *sc;
|
||
|
stgattachsubr(struct stg_softc *sc)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
| ... | ... | |
|
* PDMA functions
|
||
|
**************************************************************/
|
||
|
static __inline void
|
||
|
stg_pdma_end(sc, ti)
|
||
|
struct stg_softc *sc;
|
||
|
struct targ_info *ti;
|
||
|
stg_pdma_end(struct stg_softc *sc, struct targ_info *ti)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
stg_pio_read(sc, ti, thold)
|
||
|
struct stg_softc *sc;
|
||
|
struct targ_info *ti;
|
||
|
u_int thold;
|
||
|
stg_pio_read(struct stg_softc *sc, struct targ_info *ti, u_int thold)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
stg_pio_write(sc, ti, thold)
|
||
|
struct stg_softc *sc;
|
||
|
struct targ_info *ti;
|
||
|
u_int thold;
|
||
|
stg_pio_write(struct stg_softc *sc, struct targ_info *ti, u_int thold)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
stg_negate_signal(sc, mask, s)
|
||
|
struct stg_softc *sc;
|
||
|
u_int8_t mask;
|
||
|
u_char *s;
|
||
|
stg_negate_signal(struct stg_softc *sc, u_int8_t mask, u_char *s)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
stg_expect_signal(sc, phase, mask)
|
||
|
struct stg_softc *sc;
|
||
|
u_int8_t phase, mask;
|
||
|
stg_expect_signal(struct stg_softc *sc, u_int8_t phase, u_int8_t mask)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t bst = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
stg_xfer(sc, buf, len, phase, clear_atn)
|
||
|
struct stg_softc *sc;
|
||
|
u_int8_t *buf;
|
||
|
int len;
|
||
|
int phase;
|
||
|
int clear_atn;
|
||
|
stg_xfer(struct stg_softc *sc, u_int8_t *buf, int len, int phase,
|
||
|
int clear_atn)
|
||
|
{
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
|
bus_space_handle_t ioh = sc->sc_ioh;
|
||
| ... | ... | |
|
* disconnect & reselect (HW low)
|
||
|
**************************************************************/
|
||
|
static int
|
||
|
stg_reselected(sc)
|
||
|
struct stg_softc *sc;
|
||
|
stg_reselected(struct stg_softc *sc)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
stg_disconnected(sc, ti)
|
||
|
struct stg_softc *sc;
|
||
|
struct targ_info *ti;
|
||
|
stg_disconnected(struct stg_softc *sc, struct targ_info *ti)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
| ... | ... | |
|
* SEQUENCER
|
||
|
**************************************************************/
|
||
|
static int
|
||
|
stg_target_nexus_establish(sc)
|
||
|
struct stg_softc *sc;
|
||
|
stg_target_nexus_establish(struct stg_softc *sc)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
stg_lun_nexus_establish(sc)
|
||
|
struct stg_softc *sc;
|
||
|
stg_lun_nexus_establish(struct stg_softc *sc)
|
||
|
{
|
||
|
return 0;
|
||
|
}
|
||
|
static int
|
||
|
stg_ccb_nexus_establish(sc)
|
||
|
struct stg_softc *sc;
|
||
|
stg_ccb_nexus_establish(struct stg_softc *sc)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
struct slccb *cb = slp->sl_Qnexus;
|
||
| ... | ... | |
|
#define STGHW_SELECT_INTERVAL 10
|
||
|
static int
|
||
|
stghw_select_targ_wait(sc, mu)
|
||
|
struct stg_softc *sc;
|
||
|
int mu;
|
||
|
stghw_select_targ_wait(struct stg_softc *sc, int mu)
|
||
|
{
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
|
bus_space_handle_t ioh = sc->sc_ioh;
|
||
| ... | ... | |
|
}
|
||
|
static void
|
||
|
stg_selection_done_and_expect_msgout(sc)
|
||
|
struct stg_softc *sc;
|
||
|
stg_selection_done_and_expect_msgout(struct stg_softc *sc)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
| ... | ... | |
|
}
|
||
|
int
|
||
|
stgintr(arg)
|
||
|
void *arg;
|
||
|
stgintr(void *arg)
|
||
|
{
|
||
|
struct stg_softc *sc = arg;
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
| ... | ... | |
|
}
|
||
|
static int
|
||
|
stg_timeout(sc)
|
||
|
struct stg_softc *sc;
|
||
|
stg_timeout(struct stg_softc *sc)
|
||
|
{
|
||
|
struct scsi_low_softc *slp = &sc->sc_sclow;
|
||
|
bus_space_tag_t iot = sc->sc_iot;
|
||
| disk/trm/trm.c 26 Nov 2005 00:45:55 -0000 | ||
|---|---|---|
|
}
|
||
|
static void
|
||
|
trm_Interrupt(vpACB)
|
||
|
void *vpACB;
|
||
|
trm_Interrupt(void *vpACB)
|
||
|
{
|
||
|
PACB pACB;
|
||
|
PDCB pDCB;
|
||
| disk/vn/vn.c 26 Nov 2005 00:47:16 -0000 | ||
|---|---|---|
|
*/
|
||
|
static int
|
||
|
vniocattach_file(vn, vio, dev, flag, td)
|
||
|
struct vn_softc *vn;
|
||
|
struct vn_ioctl *vio;
|
||
|
dev_t dev;
|
||
|
int flag;
|
||
|
struct thread *td;
|
||
|
vniocattach_file(struct vn_softc *vn, struct vn_ioctl *vio, dev_t dev,
|
||
|
int flag, struct thread *td)
|
||
|
{
|
||
|
struct vattr vattr;
|
||
|
struct nlookupdata nd;
|
||
| ... | ... | |
|
*/
|
||
|
static int
|
||
|
vniocattach_swap(vn, vio, dev, flag, td)
|
||
|
struct vn_softc *vn;
|
||
|
struct vn_ioctl *vio;
|
||
|
dev_t dev;
|
||
|
int flag;
|
||
|
struct thread *td;
|
||
|
vniocattach_swap(struct vn_softc *vn, struct vn_ioctl *vio, dev_t dev,
|
||
|
int flag, struct thread *td)
|
||
|
{
|
||
|
int error;
|
||
|
struct proc *p = td->td_proc;
|
||
| misc/gpib/gpib.c 8 Dec 2005 21:27:36 -0000 | ||
|---|---|---|
|
* Attach device and print the type of card to the screen.
|
||
|
*/
|
||
|
static int
|
||
|
gpattach(isdp)
|
||
|
struct isa_device *isdp;
|
||
|
gpattach(struct isa_device *isdp)
|
||
|
{
|
||
|
struct gpib_softc *sc = &gpib_sc;
|
||
| ... | ... | |
|
* i.e. even if gpib5 is open, we can't open another minor device
|
||
|
*/
|
||