diff options
author | phk <phk@FreeBSD.org> | 1999-09-01 13:03:05 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-09-01 13:03:05 +0000 |
commit | 7def0bc767d035b930e9193ee5e772ff85fc1766 (patch) | |
tree | adc3702375783ad134a02f7a439c41f548862405 /sys/i386 | |
parent | 15e27f246fc8ff93aa5ac215cb9648046c5d8b9f (diff) | |
download | FreeBSD-src-7def0bc767d035b930e9193ee5e772ff85fc1766.zip FreeBSD-src-7def0bc767d035b930e9193ee5e772ff85fc1766.tar.gz |
Set si_bsize_phys and si_bsize_max in all legacy CD drivers.
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/isa/atapi-cd.c | 2 | ||||
-rw-r--r-- | sys/i386/isa/matcd/matcd.c | 2 | ||||
-rw-r--r-- | sys/i386/isa/mcd.c | 2 | ||||
-rw-r--r-- | sys/i386/isa/scd.c | 2 | ||||
-rw-r--r-- | sys/i386/isa/wd_cd.c | 2 |
5 files changed, 10 insertions, 0 deletions
diff --git a/sys/i386/isa/atapi-cd.c b/sys/i386/isa/atapi-cd.c index 72412a9..a8adbab 100644 --- a/sys/i386/isa/atapi-cd.c +++ b/sys/i386/isa/atapi-cd.c @@ -399,6 +399,8 @@ acdopen(dev_t dev, int flags, int fmt, struct proc *p) return ENXIO; cdp = acdtab[lun]; + dev->si_bsize_phys = 2048; + dev->si_bsize_max = MAXBSIZE; if (!(cdp->flags & F_BOPEN) && !cdp->refcnt) { /* Prevent user eject */ acd_request_wait(cdp, ATAPI_PREVENT_ALLOW, diff --git a/sys/i386/isa/matcd/matcd.c b/sys/i386/isa/matcd/matcd.c index a29d1b9..71b67da 100644 --- a/sys/i386/isa/matcd/matcd.c +++ b/sys/i386/isa/matcd/matcd.c @@ -623,6 +623,8 @@ int matcdopen(dev_t dev, int flags, int fmt, if (ldrive >= TOTALDRIVES) return(ENXIO); + dev->si_bsize_phys = 2048; + dev->si_bsize_max = MAXBSIZE; #ifdef DEBUGOPEN printf("matcd%d: Open: dev %x partition %x controller %x flags %x cdrive %x\n", diff --git a/sys/i386/isa/mcd.c b/sys/i386/isa/mcd.c index 5ab40ef..37bd508 100644 --- a/sys/i386/isa/mcd.c +++ b/sys/i386/isa/mcd.c @@ -296,6 +296,8 @@ int mcdopen(dev_t dev, int flags, int fmt, struct proc *p) if (!(cd->flags & MCDVALID) && cd->openflags) return ENXIO; + dev->si_bsize_phys = 2048; + dev->si_bsize_max = MAXBSIZE; if (mcd_getstat(unit,1) == -1) return EIO; diff --git a/sys/i386/isa/scd.c b/sys/i386/isa/scd.c index 5ec3ead..1742fdd 100644 --- a/sys/i386/isa/scd.c +++ b/sys/i386/isa/scd.c @@ -258,6 +258,8 @@ scdopen(dev_t dev, int flags, int fmt, struct proc *p) XDEBUG(1,("scd%d: DEBUG: status = 0x%x\n", unit, inb(cd->iobase+IREG_STATUS))); + dev->si_bsize_phys = 2048; + dev->si_bsize_max = MAXBSIZE; if ((rc = spin_up(unit)) != 0) { print_error(unit, rc); return EIO; diff --git a/sys/i386/isa/wd_cd.c b/sys/i386/isa/wd_cd.c index 72412a9..a8adbab 100644 --- a/sys/i386/isa/wd_cd.c +++ b/sys/i386/isa/wd_cd.c @@ -399,6 +399,8 @@ acdopen(dev_t dev, int flags, int fmt, struct proc *p) return ENXIO; cdp = acdtab[lun]; + dev->si_bsize_phys = 2048; + dev->si_bsize_max = MAXBSIZE; if (!(cdp->flags & F_BOPEN) && !cdp->refcnt) { /* Prevent user eject */ acd_request_wait(cdp, ATAPI_PREVENT_ALLOW, |