diff options
author | obrien <obrien@FreeBSD.org> | 2003-02-23 19:16:53 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2003-02-23 19:16:53 +0000 |
commit | a5c4e25f0e84d442ad180a0fee8ed384896b97b1 (patch) | |
tree | b3ab86cdd506b974b0e87f8a7cf758d3cdbf168b /sys | |
parent | 919bdd65981a193514af20ab6d2f55d588d2606b (diff) | |
download | FreeBSD-src-a5c4e25f0e84d442ad180a0fee8ed384896b97b1.zip FreeBSD-src-a5c4e25f0e84d442ad180a0fee8ed384896b97b1.tar.gz |
Add adv_adj_endian_qdone_info() & adv_adj_scsiq_endian()
so this at least compiles on big-endian machines.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/advansys/advlib.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sys/dev/advansys/advlib.c b/sys/dev/advansys/advlib.c index d8a35ab..e6e0226 100644 --- a/sys/dev/advansys/advlib.c +++ b/sys/dev/advansys/advlib.c @@ -257,6 +257,8 @@ adv_sgcount_to_qcount(int sgcount) return (n_sg_list_qs + 1); } +static void adv_adj_endian_qdone_info(struct adv_q_done_info *); +static void adv_adj_scsiq_endian(struct adv_scsi_q *); static void adv_get_q_info(struct adv_softc *adv, u_int16_t s_addr, u_int16_t *inbuf, int words); static u_int adv_get_num_free_queues(struct adv_softc *adv, u_int8_t n_qs); @@ -1867,6 +1869,22 @@ adv_put_scsiq(struct adv_softc *adv, u_int16_t s_addr, } } +#if BYTE_ORDER == BIG_ENDIAN +void +adv_adj_endian_qdone_info(struct adv_q_done_info *scsiq) +{ + + panic("adv(4) not supported on big-endian machines.\n"); +} + +void +adv_adj_scsiq_endian(struct adv_scsi_q *scsiq) +{ + + panic("adv(4) not supported on big-endian machines.\n"); +} +#endif + static void adv_handle_extmsg_in(struct adv_softc *adv, u_int16_t halt_q_addr, u_int8_t q_cntl, target_bit_vector target_mask, |