diff options
author | phk <phk@FreeBSD.org> | 2003-02-25 07:35:41 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-02-25 07:35:41 +0000 |
commit | 7cf176c689a7a5f4c6ea2af8e5e6fb308026d3c6 (patch) | |
tree | e2b99a7cc9532a20f8762971c2499fae80e3dde7 /sys/dev/mlx/mlx_compat.h | |
parent | 339189c122115ade474ce3f18893ed0d2767a606 (diff) | |
download | FreeBSD-src-7cf176c689a7a5f4c6ea2af8e5e6fb308026d3c6.zip FreeBSD-src-7cf176c689a7a5f4c6ea2af8e5e6fb308026d3c6.tar.gz |
NO_GEOM cleanup:
Move to "struct disk*" centric API.
Retire major #131 (mlxd)
Diffstat (limited to 'sys/dev/mlx/mlx_compat.h')
-rw-r--r-- | sys/dev/mlx/mlx_compat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mlx/mlx_compat.h b/sys/dev/mlx/mlx_compat.h index 0c4fd17..aa69ba6 100644 --- a/sys/dev/mlx/mlx_compat.h +++ b/sys/dev/mlx/mlx_compat.h @@ -65,8 +65,8 @@ typedef struct bio_queue_head mlx_bioq; # define MLX_BIO_DATA(bp) (bp)->bio_data # define MLX_BIO_LENGTH(bp) (bp)->bio_bcount # define MLX_BIO_LBA(bp) (bp)->bio_pblkno -# define MLX_BIO_SOFTC(bp) (bp)->bio_dev->si_drv1 -# define MLX_BIO_UNIT(bp) *(int *)((bp)->bio_dev->si_drv2) +# define MLX_BIO_SOFTC(bp) (bp)->bio_disk->d_drv1 +# define MLX_BIO_UNIT(bp) (bp)->bio_disk->d_unit # define MLX_BIO_SET_ERROR(bp, err) do { (bp)->bio_error = err; (bp)->bio_flags |= BIO_ERROR;} while(0) # define MLX_BIO_HAS_ERROR(bp) ((bp)->bio_flags & BIO_ERROR) # define MLX_BIO_RESID(bp) (bp)->bio_resid |