Bruce Evans
a7f8f2ab55
Changed cncheckc() interface so that it is 8-bit clean - return -1
...
instead of 0 if there is no input.
1996-09-14 04:31:09 +00:00
Bruce Evans
28eda575a7
Restored a non-devconf comment that was removed with devconf.
1996-09-10 23:37:52 +00:00
Bruce Evans
b568ea4e01
Removed more devconf leftovers.
1996-09-10 23:31:13 +00:00
Poul-Henning Kamp
40f3771f7f
Various cleanups for remanents of devconf.
1996-09-08 10:44:18 +00:00
Poul-Henning Kamp
bfbb029d87
Remove devconf, it never grew up to be of any use.
1996-09-06 23:09:20 +00:00
Satoshi Asami
1225e2435d
Second phase of merge, get rid of more machine-independent-dependencies.
...
Get rid of pc98/pc98/pc98_device.h.
Submitted by: The FreeBSD(98) Development Team
1996-09-03 10:24:29 +00:00
Joerg Wunsch
e7e3f60d66
Do not test_unit_ready() before starting the unit...
1996-08-17 20:50:26 +00:00
Peter Wemm
2176b02c56
The sd and od drivers didn't check for negative block numbers (like wd.c
...
does) before calling dscheck(). dscheck() doesn't appreciate this and
calls Debugger() and returns without setting bp->b_error.
This can happen when there is a casting error and offsets > 2G are
converted to negative off_t's in the disk tools. (dumpfs used to do this).
1996-08-02 06:10:49 +00:00
Poul-Henning Kamp
cba8a5ddd3
Make a "DWIM" function for adding [bc]devsw entries for bdev drivers.
...
Saves about 280 butes of source per driver, 56 bytes in object size
and another 56 bytes moves from data to bss.
No functional change intended nor expected.
GENERIC should be about one k smaller now :-)
1996-07-23 21:52:43 +00:00
Joerg Wunsch
6bc025e10d
Turn SCSIDEBUG into a new-style option.
1996-07-14 10:46:56 +00:00
Bruce Evans
6ab46d52a5
Don't use NULL in non-pointer contexts.
1996-07-12 04:12:25 +00:00
Justin T. Gibbs
6a2631bf25
Ensure that media protection is released before attempting to eject the
...
media in all cases.
Remove SCSI_2_MAX_DENSITY_CODE definition and rely on the device to tell
us if we attempt an invalid setting.
Closes PR 1245.
Submitted by: fredriks@mcs.com a few changes by me.
1996-06-24 04:54:32 +00:00
Bruce Evans
946a489fe1
Forward-declare a struct tag so that this doesn't depend on a side effect
...
of indirectly including <i386/isa/isa_device.h>.
1996-06-23 15:02:02 +00:00
Joerg Wunsch
06e958d471
Dump the timeout for st_erase().
...
Fixes PR # kern/1341: Bug fix for SCSI tape
Submitted by: tundra@tundrware.com
1996-06-22 14:57:55 +00:00
Joerg Wunsch
c30bc9dba0
Miscellaneous cleanup and minor fixes by Shunsuke and by me.
...
. use new-style options
. introduce an option OD_AUTO_TURNOFF
. try to use the native geometry as reported by the drive instead of
a faked on -- MOs do have a ``classical'' geometry
. make the scsi_start_unit() actually working
. some cosmetic fixes
Submitted by: akiyama@kme.mei.co.jp (Shunsuke Akiyama)
1996-06-16 19:58:24 +00:00
Joerg Wunsch
bf3b9d70ed
Make sure to update the SDEV_MEDIA_LOADED flag also when working on
...
the control device.
Submitted by: akiyama@kme.mei.co.jp (Shunsuke Akiyama)
1996-06-16 19:54:02 +00:00
Satoshi Asami
ad63a118b2
The Great PC98 Merge.
...
All new code is "#ifdef PC98"ed so this should make no difference to
PC/AT (and its clones) users.
Ok'd by: core
Submitted by: FreeBSD(98) development team
1996-06-14 11:02:28 +00:00
Gary Palmer
c23670e294
Clean up -Wunused warnings.
...
Reviewed by: bde
1996-06-12 05:11:41 +00:00
John Fieber
18182fa7a3
Append a * to the model field of the Archive Viper quirk entry.
...
Without the wildcard, the drive would never match the entry.
Also add a comment describing how matching takes place to help avoid
problems like this.
1996-06-03 14:25:11 +00:00
Joerg Wunsch
ef70eb9783
Correct a few mode page definitions according to the SCSI-2 specs.
...
Not yet used, but might perhaps be used in od(4) some day.
1996-05-19 19:29:09 +00:00
Joerg Wunsch
a77032a5a4
This patch updates sys/scsi/od.c:
...
* Improve ficticious geometry translation.
* CD compatible ioctl's, CDIOCALLOW, CDIOCPREVENT and CDIOCEJECT.
* Additional sense code handling for some drives.
Reviewed by: joerg
Submitted by: akiyama@kme.mei.co.jp (Shunsuke Akiyama)
1996-05-19 19:26:21 +00:00
Poul-Henning Kamp
aa8de40ae5
Another sweep over the pmap/vm macros, this time with more focus on
...
the usage. I'm not satisfied with the naming, but now at least there is
less bogus stuff around.
1996-05-03 21:01:54 +00:00
Poul-Henning Kamp
031ce85e23
Don't fiddle page tables by hand, use pmap_enter.
...
(copied from wd.c)
1996-05-02 22:20:52 +00:00
Poul-Henning Kamp
e911eafcba
removed:
...
CLBYTES PD_SHIFT PGSHIFT NBPG PGOFSET CLSIZELOG2 CLSIZE pdei()
ptei() kvtopte() ptetov() ispt() ptetoav() &c &c
new:
NPDEPG
Major macro cleanup.
1996-05-02 14:21:14 +00:00
Bruce Evans
87b620baa9
Don't depend on <sys/types.h> including <sys/cdefs.h>.
1996-04-19 17:39:57 +00:00
Bruce Evans
3157adc8af
Removed now-unused #includes of <machine/cpu.h>. They were for bootverbose
...
being declared in the wrong place.
1996-04-07 17:32:42 +00:00
Marc G. Fournier
aab063aa77
Change dev_link() to devfs_link()
1996-04-02 04:54:26 +00:00
Marc G. Fournier
37a16ebf5f
Changed use of devfs_add_devsw() to devfs_add_devswf()
...
Changed DEVFS structure devfs_token so that adding the devices is
a simple matter of a 4 line for loop versus 16 lines of code
Reviewed by: julian@freebsd.org
1996-04-01 02:12:53 +00:00
Justin T. Gibbs
ef6653eddb
Implement the XS_SELTIMEOUT error code. This causes the SCSI code to
...
not retry again and should be used when a device times out during selection
(ie is not on the bus). This should speed up the boot sequence.
1996-03-31 03:19:09 +00:00
Bruce Evans
f699ca4bee
Fixed devfs group and permissions of some more disk devices.
...
Added devfs cd control device.
1996-03-29 11:57:52 +00:00
Marc G. Fournier
ad6dc98242
Fixed missing variable 'name' for DEVFS code
1996-03-29 04:35:09 +00:00
Marc G. Fournier
23cbdfcbc7
Fixed a Typo
1996-03-28 16:51:12 +00:00
Marc G. Fournier
ccbc58d3ca
Using devfs_add_devswf() instead of devfs_add_devsw()
...
Reviewed by: julian@freebsd.org
1996-03-28 14:33:59 +00:00
Bruce Evans
9120a859f5
Fixed name of pt device (it has a unit number). devfs still only creates
...
one.
Added control device.
1996-03-27 20:07:29 +00:00
Bruce Evans
6ae323519c
Fixed group of disk devices (was wheel or games, now operator).
...
Added scsi control devices.
Converted almost everything that I changed to use devfs_add_devswf()
and verbose id macros.
st.c:
Renamed enrst* to erst* since that's what the current name is (enrst
seems to be an old name).
1996-03-27 18:50:10 +00:00
David Greenman
a6409dd7a8
Fixed some missing int32 -> int32_t
1996-03-10 18:17:54 +00:00
Jordan K. Hubbard
f8decb67c4
u_int8 -> u_int8_t
1996-03-10 12:52:47 +00:00
Justin T. Gibbs
9932c050b9
Cleanse the SCSI subsystem of its internally defined types
...
u_int32, u_int16, u_int8, int32, int16, int8.
Use the system defined *_t types instead.
1996-03-10 07:13:15 +00:00
Peter Wemm
c146b42dc0
Fix broken SCSI_DELAY option.. (missing #include "opt_scsi.h")
...
Pointed out by: Boyd Faulkner <faulkner@asgard.bga.com>
1996-03-09 07:13:57 +00:00
Peter Wemm
4bd4912865
Add more options into the conf/options and i386/conf/options.i386 files
...
and the #include hooks so that 'make depend' is more useful. This
covers most of the options I regularly use (but not all) and some other
easy ones.
1996-03-02 18:24:13 +00:00
John Dyson
33309c7fc0
More b_flags fixes.
1996-03-02 01:49:51 +00:00
Julian Elischer
53ee9bec58
cosmetic fixes plus bring the cdevsw and bdevsw entries
...
into line with the new form.
1996-02-19 09:36:23 +00:00
Julian Elischer
e69f051247
allow the default tape unit to try figure out what it is rather than
...
forcing it to 512 byte blocks....
1996-02-19 09:26:07 +00:00
Stefan Eßer
9df7e08732
Add: CDU-8003A aka Apple CDROM-300
...
Submitted by: Michael Reifenberger <root@totum.plaut.de>
1996-02-17 23:59:24 +00:00
Andrey A. Chernov
fa2e3e4891
Physically ask for leadout entry instead of asking of
...
last_track + 1 entry, some drives don't understand it
1996-02-13 03:46:48 +00:00
Andrey A. Chernov
a034e85849
Recognize NRC MBR-7.4 too
1996-02-12 23:22:33 +00:00
Paul Traina
19c8e2e153
Close kern/614 - wait up to an hour for a tape operation like "fsf" (slow drives)
1996-02-08 06:23:49 +00:00
Joerg Wunsch
c38a76a7d0
Add a quirk record for the Tandberg 42XX series. Not only that these
...
drives require ST_Q_SNS_HLP, they also wrongly accept a blocksize of
1024 in the first place (for a QIC-150 cartridge), but complain later
about it. The hack is to only probe for 512 for them.
Reorder the entries in st_decide_mode() so that QIC >= 525 is properly
accepted as variable blocksize.
1996-02-03 13:31:13 +00:00
Andrey A. Chernov
628257e0b0
Simplify READTOCENTRYS by removing fake leadout code,
...
SCSI system do it for us
1996-02-02 23:43:40 +00:00
Joerg Wunsch
1d98b891d0
Add the HP4020i CD-R as a known device.
...
Reorder the CD-R entries in knowndevs[].
Submitted by: fred@jjarray.umd.edu (Fred Cawthorne)
1996-02-02 22:59:48 +00:00