bde
e0185c45da
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
bde
2984bf864a
Restored a non-devconf comment that was removed with devconf.
1996-09-10 23:37:52 +00:00
bde
4b1a7c107d
Removed more devconf leftovers.
1996-09-10 23:31:13 +00:00
phk
367da4b2c8
Various cleanups for remanents of devconf.
1996-09-08 10:44:18 +00:00
phk
bca885205d
Remove devconf, it never grew up to be of any use.
1996-09-06 23:09:20 +00:00
asami
bbb6994e50
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
56678549f3
Do not test_unit_ready() before starting the unit...
1996-08-17 20:50:26 +00:00
peter
29c65f94fc
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
phk
507c870974
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
9a8388eab8
Turn SCSIDEBUG into a new-style option.
1996-07-14 10:46:56 +00:00
bde
4c9b9ce103
Don't use NULL in non-pointer contexts.
1996-07-12 04:12:25 +00:00
gibbs
3ae13f335a
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
bde
e8882fb411
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
33d0c3d6f4
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
430ed8358f
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
2ed1eb601c
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
asami
36a1932601
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
gpalmer
57c3ebc617
Clean up -Wunused warnings.
...
Reviewed by: bde
1996-06-12 05:11:41 +00:00
jfieber
ca4dbe0a3e
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
9308fdf499
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
2ff893a7b2
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
phk
5d01dc3d50
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
phk
a65c6cdecd
Don't fiddle page tables by hand, use pmap_enter.
...
(copied from wd.c)
1996-05-02 22:20:52 +00:00
phk
5a6fb3a7da
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
bde
a807e1724b
Don't depend on <sys/types.h> including <sys/cdefs.h>.
1996-04-19 17:39:57 +00:00
bde
cfdfb3c281
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
scrappy
e14745c8ea
Change dev_link() to devfs_link()
1996-04-02 04:54:26 +00:00
scrappy
4673aad9a1
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
gibbs
c6c3051dbc
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
bde
6043e95113
Fixed devfs group and permissions of some more disk devices.
...
Added devfs cd control device.
1996-03-29 11:57:52 +00:00
scrappy
6bebd36987
Fixed missing variable 'name' for DEVFS code
1996-03-29 04:35:09 +00:00
scrappy
d163509006
Fixed a Typo
1996-03-28 16:51:12 +00:00
scrappy
0567ca9a10
Using devfs_add_devswf() instead of devfs_add_devsw()
...
Reviewed by: julian@freebsd.org
1996-03-28 14:33:59 +00:00
bde
1e44bb87f6
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
bde
a0f80d71f4
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
dg
afcfb06cbe
Fixed some missing int32 -> int32_t
1996-03-10 18:17:54 +00:00
jkh
56e15a101e
u_int8 -> u_int8_t
1996-03-10 12:52:47 +00:00
gibbs
b37f58736e
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
eecb8eb3ab
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
13a0014ac8
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
dyson
5f6f44df5a
More b_flags fixes.
1996-03-02 01:49:51 +00:00
julian
0b83253216
cosmetic fixes plus bring the cdevsw and bdevsw entries
...
into line with the new form.
1996-02-19 09:36:23 +00:00
julian
82e0bf3759
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
se
387ee3bccd
Add: CDU-8003A aka Apple CDROM-300
...
Submitted by: Michael Reifenberger <root@totum.plaut.de>
1996-02-17 23:59:24 +00:00
ache
63aca4a0d9
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
ache
89cd3c7ebf
Recognize NRC MBR-7.4 too
1996-02-12 23:22:33 +00:00
pst
67857c5707
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
660a4cf0c0
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
ache
a724de6de3
Simplify READTOCENTRYS by removing fake leadout code,
...
SCSI system do it for us
1996-02-02 23:43:40 +00:00
joerg
e23399eaf5
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