diff options
author | phk <phk@FreeBSD.org> | 2003-02-25 07:41:51 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-02-25 07:41:51 +0000 |
commit | 6a119a04ae59d3b4c5e6434f74c94ca18d21173b (patch) | |
tree | abb5d7d16b8508978876b9ee52da8c8e1027db79 /sys/dev/twe/twe_compat.h | |
parent | d5d524487ff396c03df98188b4b16283acc1b2fb (diff) | |
download | FreeBSD-src-6a119a04ae59d3b4c5e6434f74c94ca18d21173b.zip FreeBSD-src-6a119a04ae59d3b4c5e6434f74c94ca18d21173b.tar.gz |
NO_GEOM cleanup:
Move to new "struct disk *" centric API.
Retire major #147 (twed)
Diffstat (limited to 'sys/dev/twe/twe_compat.h')
-rw-r--r-- | sys/dev/twe/twe_compat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/twe/twe_compat.h b/sys/dev/twe/twe_compat.h index 2dc17b5..3d10434 100644 --- a/sys/dev/twe/twe_compat.h +++ b/sys/dev/twe/twe_compat.h @@ -165,8 +165,8 @@ typedef struct bio_queue_head twe_bioq; # define TWE_BIO_DATA(bp) (bp)->bio_data # define TWE_BIO_LENGTH(bp) (bp)->bio_bcount # define TWE_BIO_LBA(bp) (bp)->bio_pblkno -# define TWE_BIO_SOFTC(bp) (bp)->bio_dev->si_drv1 -# define TWE_BIO_UNIT(bp) *(int *)((bp)->bio_dev->si_drv2) +# define TWE_BIO_SOFTC(bp) (bp)->bio_disk->d_drv1 +# define TWE_BIO_UNIT(bp) (bp)->bio_disk->d_unit # define TWE_BIO_SET_ERROR(bp, err) do { (bp)->bio_error = err; (bp)->bio_flags |= BIO_ERROR;} while(0) # define TWE_BIO_HAS_ERROR(bp) ((bp)->bio_flags & BIO_ERROR) # define TWE_BIO_RESID(bp) (bp)->bio_resid |