History log of /src/sys/arch/hp300/dev/ct.c |
Revision | | Date | Author | Comments |
1.64 |
| 21-Apr-2023 |
tsutsui | Remove ancient /* ARGSUSED */ lint comments.
|
1.63 |
| 05-Jul-2021 |
tsutsui | Cleanup duplicated CS/80 indentify structures. From OpenBSD.
https://marc.info/?l=openbsd-cvs&m=113227249626888&w=2 > Define the CS/80 identify structure only once and correctly, instead of > duplicating it in every CS/80 driver and using an hardcoded number for > its size. > No functional change.
https://marc.info/?l=openbsd-cvs&m=113273001020159&w=2 > Pick HP-IB describe structures changes from main kernel code here as well.
|
1.62 |
| 05-Jul-2021 |
tsutsui | Pull HP-IB probe fixes from OpenBSD/hp300.
https://marc.info/?l=openbsd-cvs&m=113217630426615&w=2 > Overhaul the way HP-IB devices are probed. We will now do an exhaustive > probe of the (slave, punit) tuple space, since this is the only way we > can get a dual disk or dual tape enclosure to attach two devices of the > same kind.
This allows using multiple rd(4) disk images on the same slave emulated by HPDisk (and probably the real 9122D with dual floppy disk drives).
Thanks to Miod Vallat for suggesting this fix.
|
1.61 |
| 25-Jul-2014 |
dholland | branches: 1.61.32; 1.61.44; Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
|
1.60 |
| 25-Jul-2014 |
dholland | Add d_discard to all struct bdevsw instances I could find.
I've set them all to nodiscard. Some of them (wd, dk, vnd, ld, raidframe, maybe cgd) should be implemented for real.
|
1.59 |
| 24-Mar-2014 |
christos | branches: 1.59.2; - remove unused - use cpu_{g,s}etmodel
|
1.58 |
| 16-Mar-2014 |
dholland | Change (mostly mechanically) every cdevsw/bdevsw I can find to use designated initializers.
I have not built every extant kernel so I have probably broken at least one build; however I've also found and fixed some wrong cdevsw/bdevsw entries so even if so I think we come out ahead.
|
1.57 |
| 13-Jan-2009 |
yamt | branches: 1.57.14; 1.57.24; 1.57.28; g/c BUFQ_FOO() macros and use bufq_foo() directly.
|
1.56 |
| 17-Jun-2008 |
he | branches: 1.56.4; Add a missing parenthesis so that this builds again.
|
1.55 |
| 13-Jun-2008 |
cegger | use device_lookup_private to get softc
|
1.54 |
| 28-Apr-2008 |
martin | branches: 1.54.2; 1.54.4; Remove clause 3 and 4 from TNF licenses
|
1.53 |
| 29-Mar-2008 |
tsutsui | branches: 1.53.2; 1.53.4; Split device_t/softc, and misc cosmetic changes.
|
1.52 |
| 02-Jan-2008 |
ad | branches: 1.52.6; Merge vmlocking2 to head.
|
1.51 |
| 17-Oct-2007 |
garbled | branches: 1.51.2; 1.51.4; 1.51.8; Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA cpu based PPC ports that focused on sharing as much code as possible between the various ports to eliminate near-identical copies of files in every tree. Additionally there is a new PIC system that unifies the interface to interrupt code for all different OEA ppc arches. The work for this branch was done by a variety of people, too long to list here.
TODO: bebox still needs work to complete the transition to -renovation. ofppc still needs a bunch of work, which I will be looking at. ev64260 still needs to be renovated amigappc was not attempted.
NOTES: pmppc was removed as an arch, and moved to a evbppc target.
|
1.50 |
| 08-Oct-2007 |
ad | Merge brelse() changes from the vmlocking branch.
|
1.49 |
| 29-Jul-2007 |
ad | branches: 1.49.4; 1.49.6; 1.49.8; It's not a good idea for device drivers to modify b_flags, as they don't need to understand the locking around that field. Instead of setting B_ERROR, set b_error instead. b_error is 'owned' by whoever completes the I/O request.
|
1.48 |
| 04-Mar-2007 |
christos | branches: 1.48.2; 1.48.10; 1.48.12; 1.48.14; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.47 |
| 21-Jul-2006 |
tsutsui | branches: 1.47.10; Some KNF.
|
1.46 |
| 28-Mar-2006 |
thorpej | Use device_unit().
|
1.45 |
| 23-Feb-2006 |
thorpej | branches: 1.45.2; 1.45.4; 1.45.6; Use device_parent().
|
1.44 |
| 11-Dec-2005 |
christos | branches: 1.44.2; 1.44.4; 1.44.6; merge ktrace-lwp.
|
1.43 |
| 15-Oct-2005 |
yamt | - change the way to specify a bufq strategy. (by string rather than by number) - rather than embedding bufq_state in driver softc, have a pointer to the former. - move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c. - rename method to strategy for consistency. - move some definitions which don't need to be exposed to the rest of kernel from sys/bufq.h to sys/bufq_impl.h. (is it better to move it to kern/ or somewhere?) - fix some obvious breakage in dev/qbus/ts.c. (not tested)
|
1.42 |
| 02-Jun-2005 |
tsutsui | branches: 1.42.2; Add const.
|
1.41 |
| 14-Mar-2005 |
tsutsui | Include "ioconf.h" for struct cfdriver *_cd decls.
|
1.40 |
| 05-Feb-2005 |
chs | make this compile with DEBUG.
|
1.39 |
| 28-Oct-2004 |
yamt | branches: 1.39.4; 1.39.6; move buffer queue related stuffs from buf.h to their own header, bufq.h.
|
1.38 |
| 28-Aug-2004 |
thorpej | Use ANSI function decls, static, and const.
|
1.37 |
| 17-Nov-2003 |
tsutsui | TAB/space cleanup.
|
1.36 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
1.35 |
| 29-Jun-2003 |
fvdl | branches: 1.35.2; Back out the lwp/ktrace changes. They contained a lot of colateral damage, and need to be examined and discussed more.
|
1.34 |
| 29-Jun-2003 |
thorpej | Adapt to ktrace/lwp changes.
|
1.33 |
| 23-Oct-2002 |
jdolecek | merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework currently supported events include socket, file, directory, fifo, pipe, tty and device changes, and monitoring of processes and signals
kqueue is supported by all writable filesystems in NetBSD tree (with exception of Coda) and all device drivers supporting poll(2)
based on work done by Jonathan Lemon for FreeBSD initial NetBSD port done by Luke Mewburn and Jason Thorpe
|
1.32 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.31 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.30 |
| 06-Sep-2002 |
gehenna | Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to dynamically generated by config(8).
- All device switches is defined as a constant structure in device drivers.
- The new grammer ``device-major'' is introduced to ``files''.
device-major <prefix> char <num> [block <num>] [<rules>]
- All device major numbers must be listed up in port dependent majors.<arch> by using this grammer.
- Added the new naming convention. The name of the device switch must be <prefix>_[bc]devsw for auto-generation of device switch tables.
- The backward compatibility of loading block/character device switch by LKM framework is broken. This is necessary to convert from block/character device major to device name in runtime and vice versa.
- The restriction to assign device major by LKM is completely removed. We don't need to reserve LKM entries for dynamic loading of device switch.
- In compile time, device major numbers list is packed into the kernel and the LKM framework will refer it to assign device major number dynamically.
|
1.29 |
| 26-Jul-2002 |
hannken | Convert to new device buffer queue interface.
Approved by: Jason R. Thorpe <thorpej@netbsd.org>
|
1.28 |
| 15-Mar-2002 |
gmcgarry | branches: 1.28.4; Add RCSIDs.
|
1.27 |
| 08-Dec-2001 |
gmcgarry | bcopy -> memcpy bzero -> memset bcmp -> memcmp
|
1.26 |
| 27-May-2001 |
kleink | branches: 1.26.2; 1.26.4; 1.26.8; Add 35401A drive (not picker) support; from Jarkko Teppo in PR port-hp300/11183.
|
1.25 |
| 19-May-2000 |
thorpej | branches: 1.25.6; A foolish consistency; most parts of the kernel use bp->b_data, so change these from bp->b_un.b_addr to bp->b_data, as well. This also allows us more flexibility to experiment with other data buffer types hung off of struct buf.
|
1.24 |
| 21-Jan-2000 |
thorpej | Update for sys/buf.h/disksort_*() changes.
|
1.23 |
| 12-Jan-1998 |
thorpej | branches: 1.23.14; 1.23.20; Update for changes to config.
|
1.22 |
| 04-Oct-1997 |
thorpej | Copyright assigned to The NetBSD Foundation.
|
1.21 |
| 02-Apr-1997 |
scottr | branches: 1.21.4; Fix printf() and other warnings when compiled with DEBUG defined.
|
1.20 |
| 31-Mar-1997 |
scottr | Add prototypes, and make this compile with -Wall. Remove register modifier from all declarations.
|
1.19 |
| 30-Jan-1997 |
thorpej | Convert to new-style autoconfiguration; old-style config is no longer supported.
|
1.18 |
| 14-Oct-1996 |
thorpej | Set the device class on non-dull devices. This is a transitional thing.
|
1.17 |
| 13-Oct-1996 |
christos | backout previous kprintf changes
|
1.16 |
| 11-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.15 |
| 14-Feb-1996 |
thorpej | All interrupt routines (except the HIL; don't ask) now take a pointer to a softc, rather than a unit number. Add a "dq_softc" member to struct devqueue; this is a temporary measure until the dma/controller/device callback spaghetti is untangled.
YAY! No more need for dcafastservice!
HIL: squish instances of "(void) splhil()" and "(void) spl0();".
|
1.14 |
| 23-Jan-1996 |
scottr | Eliminate unnecessary goto and labels, and other minor cleanup.
|
1.13 |
| 02-Dec-1995 |
thorpej | Use a "match/attach" rather than "init" scheme for probing devices. This is a step towards getting the drivers ready for new config.
|
1.12 |
| 09-Oct-1995 |
thorpej | Pass correct number of arguments to hpibgo().
|
1.11 |
| 04-Aug-1995 |
thorpej | Update for conf.h changes.
|
1.10 |
| 23-Feb-1995 |
mycroft | Move common code for finishing a buffer into a separate function.
|
1.9 |
| 26-Oct-1994 |
cgd | new RCS ID format.
|
1.8 |
| 23-May-1994 |
mycroft | Merge with 4.4-Lite.
|
1.7 |
| 11-May-1994 |
mycroft | Get rid of private *read() and *write() functions.
|
1.6 |
| 10-Feb-1994 |
mycroft | Add arg to ioctl functions. Clean up #includes.
|
1.5 |
| 06-Feb-1994 |
mycroft | Use b_actb, not b_actl.
|
1.4 |
| 06-Feb-1994 |
mycroft | Add a prototype, to eliminate silly warnings.
|
1.3 |
| 11-Jan-1994 |
mycroft | *strategy functions return void.
|
1.2 |
| 01-Aug-1993 |
mycroft | Add RCS identifiers (this time on the correct side of the branch), and incorporate recent changes in netbsd-0-9 branch.
|
1.1 |
| 13-May-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.1 |
| 13-May-1993 |
cgd | add hp300 kernel files. generic kernel files might need some help...
|
1.21.4.1 |
| 14-Oct-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.23.20.1 |
| 21-Dec-1999 |
wrstuden | Initial commit of recent changes to make DEV_BSIZE go away.
Runs on i386, needs work on other arch's. Main kernel routines should be fine, but a number of the stand programs need help.
cd, fd, ccd, wd, and sd have been updated. sd has been tested with non-512 byte block devices. vnd, raidframe, and lfs need work.
Non 2**n block support is automatic for LKM's and conditional for kernels on "options NON_PO2_BLOCKS".
|
1.23.14.1 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago A i386 GENERIC kernel compiles without the siop, ahc and bha drivers (will be updated later). i386 IDE/ATAPI and ncr work, as well as sparc/esp_sbus. alpha should work as well (untested yet). siop, ahc and bha will be updated once I've updated the branch to current -current, as well as machine-dependant code.
|
1.25.6.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.26.8.7 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.26.8.6 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.26.8.5 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.26.8.4 |
| 01-Aug-2002 |
nathanw | Catch up to -current.
|
1.26.8.3 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.26.8.2 |
| 08-Jan-2002 |
nathanw | Catch up to -current.
|
1.26.8.1 |
| 27-May-2001 |
nathanw | file ct.c was added on branch nathanw_sa on 2002-01-08 00:24:31 +0000
|
1.26.4.1 |
| 10-Oct-2001 |
fvdl | Convert all remaining devices.
|
1.26.2.4 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.26.2.3 |
| 06-Sep-2002 |
jdolecek | sync kqueue branch with HEAD
|
1.26.2.2 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.26.2.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.28.4.2 |
| 30-Aug-2002 |
gehenna | catch up with -current.
|
1.28.4.1 |
| 17-May-2002 |
gehenna | Add device switch.
|
1.35.2.9 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.35.2.8 |
| 01-Apr-2005 |
skrll | Sync with HEAD.
|
1.35.2.7 |
| 06-Feb-2005 |
skrll | Sync with HEAD.
|
1.35.2.6 |
| 24-Jan-2005 |
skrll | Adapt to branch.
|
1.35.2.5 |
| 02-Nov-2004 |
skrll | Sync with HEAD.
|
1.35.2.4 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.35.2.3 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.35.2.2 |
| 03-Sep-2004 |
skrll | Sync with HEAD
|
1.35.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.39.6.2 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.39.6.1 |
| 12-Feb-2005 |
yamt | sync with head.
|
1.39.4.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.42.2.5 |
| 21-Jan-2008 |
yamt | sync with head
|
1.42.2.4 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.42.2.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.42.2.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.42.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.44.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.44.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.44.2.1 |
| 01-Mar-2006 |
yamt | sync with head.
|
1.45.6.1 |
| 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.45.4.1 |
| 19-Apr-2006 |
elad | sync with head - hopefully this will work
|
1.45.2.2 |
| 11-Aug-2006 |
yamt | sync with head
|
1.45.2.1 |
| 01-Apr-2006 |
yamt | sync with head.
|
1.47.10.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.48.14.1 |
| 15-Aug-2007 |
skrll | Sync with HEAD.
|
1.48.12.1 |
| 07-Aug-2007 |
matt | Sync with HEAD.
|
1.48.10.2 |
| 16-Oct-2007 |
garbled | Sync with HEAD
|
1.48.10.1 |
| 03-Oct-2007 |
garbled | Sync with HEAD
|
1.48.2.2 |
| 09-Oct-2007 |
ad | Sync with head.
|
1.48.2.1 |
| 19-Aug-2007 |
ad | - Back out the biodone() changes. - Eliminate B_ERROR (from HEAD).
|
1.49.8.1 |
| 14-Oct-2007 |
yamt | sync with head.
|
1.49.6.2 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.49.6.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.49.4.1 |
| 26-Oct-2007 |
joerg | Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
|
1.51.8.1 |
| 02-Jan-2008 |
bouyer | Sync with HEAD
|
1.51.4.1 |
| 31-Dec-2007 |
ad | Make compile with new buffer cache locking scheme.
XXX This should be largely MI, please do not make another clone of disksubr.c.
|
1.51.2.1 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.52.6.4 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.52.6.3 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.52.6.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.52.6.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.53.4.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.53.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.53.2.2 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.53.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.54.4.1 |
| 18-Jun-2008 |
simonb | Sync with head.
|
1.54.2.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.56.4.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.57.28.1 |
| 18-May-2014 |
rmind | sync with head
|
1.57.24.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.57.14.1 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.59.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.61.44.1 |
| 01-Aug-2021 |
thorpej | Sync with HEAD.
|
1.61.32.1 |
| 14-Jul-2021 |
martin | Pull up following revision(s) (requested by tsutsui in ticket #1323):
sys/arch/hp300/dev/rd.c: revision 1.109 sys/arch/hp300/stand/Makefile.buildboot: revision 1.37 sys/arch/hp300/stand/common/ct.c: revision 1.8 sys/arch/hp300/dev/hpibvar.h: revision 1.22 sys/arch/hp300/dev/ct.c: revision 1.62 sys/arch/hp300/dev/hpibvar.h: revision 1.23 sys/arch/hp300/dev/ct.c: revision 1.63 sys/arch/hp300/dev/hpibvar.h: revision 1.24 sys/arch/hp300/dev/mt.c: revision 1.55 sys/arch/hp300/dev/rdreg.h: revision 1.14 sys/arch/hp300/dev/hpib.c: revision 1.43 (via patch) sys/arch/hp300/dev/rdreg.h: revision 1.15 sys/arch/hp300/dev/rdreg.h: revision 1.16 sys/arch/hp300/dev/rdreg.h: revision 1.17 etc/etc.hp300/MAKEDEV.conf: revision 1.15 sys/arch/hp300/stand/common/hpibvar.h: revision 1.6 sys/arch/hp300/stand/common/rd.c: revision 1.11 sys/arch/hp300/dev/ctreg.h: revision 1.11 sys/arch/hp300/dev/rdvar.h: revision 1.24 sys/arch/hp300/dev/rdvar.h: revision 1.25 sys/arch/hp300/dev/rdvar.h: revision 1.26 sys/arch/hp300/dev/rd.c: revision 1.103 sys/arch/hp300/dev/rd.c: revision 1.104 sys/arch/hp300/dev/rd.c: revision 1.105 sys/arch/hp300/dev/rd.c: revision 1.106 sys/arch/hp300/dev/rd.c: revision 1.107 sys/arch/hp300/dev/rd.c: revision 1.108
Consistently use #define<tab> here.
Consistently use #define<tab> as rdreg.h.
No need to bother to use aprint_debug(9) inside #ifdef DEBUG block.
Pull HP-IB probe fixes from OpenBSD/hp300. https://marc.info/?l=openbsd-cvs&m=113217630426615&w=2
Overhaul the way HP-IB devices are probed. We will now do an exhaustive probe of the (slave, punit) tuple space, since this is the only way we can get a dual disk or dual tape enclosure to attach two devices of the same kind.
This allows using multiple rd(4) disk images on the same slave emulated by HPDisk (and probably the real 9122D with dual floppy disk drives).
Thanks to Miod Vallat for suggesting this fix.
Move attach messages from common rdident() to explicit rdattach().
Cleanup duplicated CS/80 indentify structures. From OpenBSD. https://marc.info/?l=openbsd-cvs&m=113227249626888&w=2
Define the CS/80 identify structure only once and correctly, instead of duplicating it in every CS/80 driver and using an hardcoded number for its size. No functional change. https://marc.info/?l=openbsd-cvs&m=113273001020159&w=2
Pick HP-IB describe structures changes from main kernel code here as well.
Add support of multiple rd(4) disks on all punits for HPDisk.
Special thanks to Anders Gustafsson, the author of "HPDisk" (GPIB disk emulator) http://www.dalton.ax/hpdisk/ for providing bare boards and improving firmwares for NetBSD/hp300.
Specify -fno-unwind-tables to shrink binaries.
Before: text data bss dec hex filename 77902 4328 137120 219350 358d6 uboot
After: text data bss dec hex filename 64186 4328 137120 205634 32342 uboot
Create rd3 device nodes, for HPDisk.
Add Device and drive info of 2202A, 7908A, 7911A, and 7941A.
Geometries and description info are taken from hpdrive.ini.sample in HPDrive. Briefly tested on HPDisk.
Print rd(4) capacity and geometry info as sd(4) and wd(4) do.
Before: rd0 at hpibbus1 slave 0 punit 0: 7937H rd0: 698 cylinders, 13 heads, 1116102 blocks, 512 bytes/block
After: rd0 at hpibbus1 slave 0 punit 0: 7937H rd0: 544 MB, 698 cyl, 13 head, 123 sec, 512 bytes/block x 1116102 blocks
|