History log of /src/sys/arch/hp300/dev/rd.c |
Revision | | Date | Author | Comments |
1.126 |
| 21-Apr-2023 |
tsutsui | Remove ancient /* ARGSUSED */ lint comments.
|
1.125 |
| 12-Feb-2023 |
andvar | fix various typos in comments.
|
1.124 |
| 03-Dec-2022 |
tsutsui | Explicitly include <sys/kernel.h> for hz(9) as man pages says.
XXX: it looks sys/param.h r1.615 and later also has extern int hz
|
1.123 |
| 03-Dec-2022 |
tsutsui | Add empty DIOCCACHESYNC ioctl(2) for rd(4).
Without this raid(4) always complains on various raidctl(8) ops: > raid0: cache flush[0] to component 0 failed (22)
RAID1 configured by raid(4) just works HP-IB disks on hp300.
|
1.122 |
| 01-Dec-2022 |
tsutsui | Misc KNF and cosmetics.
|
1.121 |
| 30-Nov-2022 |
tsutsui | Remove more duplicated static function declarations.
|
1.120 |
| 30-Nov-2022 |
tsutsui | Use proper RAW_PART macro rather than a magic number.
|
1.119 |
| 30-Nov-2022 |
tsutsui | Set disk_geom parameters required by DIOCGPARTINFO in disk_ioctl().
With this change raid(4) no longer complains before mountroot: > RAIDframe: can't get disk size for dev rd0 (22)
Should be pulled up to netbsd-9.
|
1.118 |
| 30-Nov-2022 |
tsutsui | Remove a duplicated static function declaration.
|
1.117 |
| 30-Nov-2022 |
tsutsui | Pass a correct dev_t arg to disk_ioctl().
Probably harmless.
|
1.116 |
| 30-Nov-2022 |
tsutsui | Check bounds of each partition by MI bounds_check_with_label(9).
The previous implementation was committed in rev 1.26 about 26 years ago and it looks there is no quirk to use the old MD one.
|
1.115 |
| 30-Nov-2022 |
tsutsui | Check bounds of RAW_PART by bounds_check_with_mediasize() as other drivers.
With this check, dd(1) without a count value against a raw partition is terminated properly at the end of media. Tested on 425t and HPDisk.
Should be pulled up to netbsd-9.
|
1.114 |
| 25-Nov-2022 |
tsutsui | Remove unnecessary declarations.
|
1.113 |
| 25-Nov-2022 |
tsutsui | Use proper integer types for HP-IB xfer parameters.
No visible regression on 425t and HPDisk.
|
1.112 |
| 23-Nov-2022 |
tsutsui | Fix "rd(4) at punits not configured on HPDisk are misprobed" problem.
- check not only stat value returned by C_QSTAT command against each punit but also desc.d_name returned by C_DESC command because it looks HPDisk responds to commands against punits supported but not-configured punits at 1-3 - prepare rdreset_unit() function to manage reset punit ops during probe without valid softc
The stragety is taken from OpenBSD with several modification. Tested on 425t with real 9122D and HPDisk emulating two 7937H drives.
Should be pulled up to netbsd-9.
|
1.111 |
| 21-Nov-2022 |
tsutsui | Use common macro for numbers of cylinders and blocks for HP-IB disks.
No binary changes.
|
1.110 |
| 31-Jul-2021 |
andvar | s/threshhold/threshold
|
1.109 |
| 11-Jul-2021 |
tsutsui | 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.
|
1.108 |
| 09-Jul-2021 |
tsutsui | 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.
|
1.107 |
| 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.106 |
| 05-Jul-2021 |
tsutsui | Move attach messages from common rdident() to explicit rdattach().
|
1.105 |
| 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.104 |
| 30-Jun-2021 |
tsutsui | No need to bother to use aprint_debug(9) inside #ifdef DEBUG block.
|
1.103 |
| 10-Jan-2021 |
tsutsui | branches: 1.103.4; 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
|
1.102 |
| 29-Sep-2020 |
msaitoh | branches: 1.102.2; s/parition/partition/
|
1.101 |
| 13-Apr-2015 |
riastradh | branches: 1.101.22; MD rnd.h cleanups. Please let me know if I broke anything!
|
1.100 |
| 02-Jan-2015 |
christos | We have three sets of DTYPE_ constants in the kernel: altq Drop Type disklabel Disk Type file Descriptor Type (not to mention constants that contain the string DTYPE). Let's make them two, by changing the disklabel one to be DisK TYPE since the other disklabel constants seem to do that. Not many userland programs use these constants (and the ones that they do are mostly in ifdefs). They will be fixed shortly.
|
1.99 |
| 31-Dec-2014 |
christos | make more drivers use disk_ioctl, and add a dev parameter to it so that we can merge the "easy" disklabel ioctls to it. Ultimately all this will go do dk_ioctl once all the drivers have been converted.
|
1.98 |
| 10-Aug-2014 |
tls | branches: 1.98.4; Merge tls-earlyentropy branch into HEAD.
|
1.97 |
| 25-Jul-2014 |
dholland | Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
|
1.96 |
| 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.95 |
| 24-Mar-2014 |
christos | branches: 1.95.2; - remove unused - use cpu_{g,s}etmodel
|
1.94 |
| 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.93 |
| 13-Oct-2012 |
tsutsui | branches: 1.93.2; struct device * -> device_t, struct cfdata * -> cfdata_t use device_xname() (from chs@)
|
1.92 |
| 02-Feb-2012 |
tls | branches: 1.92.6; Entropy-pool implementation move and cleanup.
1) Move core entropy-pool code and source/sink/sample management code to sys/kern from sys/dev.
2) Remove use of NRND as test for presence of entropy-pool code throughout source tree.
3) Remove use of RND_ENABLED in device drivers as microoptimization to avoid expensive operations on disabled entropy sources; make the rnd_add calls do this directly so all callers benefit.
4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might have lead to slight entropy overestimation for some sources.
5) Add new source types for environmental sensors, power sensors, VM system events, and skew between clocks, with a sample implementation for each.
ok releng to go in before the branch due to the difficulty of later pullup (widespread #ifdef removal and moved files). Tested with release builds on amd64 and evbarm and live testing on amd64.
|
1.91 |
| 28-Jul-2011 |
uebayasi | branches: 1.91.2; 1.91.6; dev_t is uint64_t; use PRIx64 to print it. Fix DEBUG build.
|
1.90 |
| 08-Feb-2011 |
rmind | Remove clause 3 (UCB advertising clause) from the University of Utah copyright. Confirmed by Mike Hibler, mike at cs.utah.edu - thanks! Also, merge UCB and Utah copyright texts back into one, as they originally were.
Extra verification by snj@.
|
1.89 |
| 13-Jan-2009 |
yamt | branches: 1.89.6; 1.89.8; 1.89.10; g/c BUFQ_FOO() macros and use bufq_foo() directly.
|
1.88 |
| 17-Jun-2008 |
he | branches: 1.88.4; Add some missing parenthesis to restore this to a buildable state.
|
1.87 |
| 13-Jun-2008 |
cegger | use device_lookup_private to get softc
|
1.86 |
| 28-Apr-2008 |
martin | branches: 1.86.2; 1.86.4; Remove clause 3 and 4 from TNF licenses
|
1.85 |
| 29-Mar-2008 |
tsutsui | branches: 1.85.2; 1.85.4; Split device_t/softc, and misc cosmetic changes.
|
1.84 |
| 17-Oct-2007 |
garbled | branches: 1.84.16; 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.83 |
| 08-Oct-2007 |
ad | Merge disk init changes from the vmlocking branch. These seperate init / destroy of 'struct disk' from attach / detach.
|
1.82 |
| 29-Jul-2007 |
ad | branches: 1.82.4; 1.82.6; 1.82.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.81 |
| 12-Jul-2007 |
he | branches: 1.81.2; 1.81.4; Adapt to the new signature of callout_init().
|
1.80 |
| 04-Mar-2007 |
tsutsui | branches: 1.80.2; 1.80.10; Use (char *) cast on pointer arith.
|
1.79 |
| 04-Mar-2007 |
christos | Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.78 |
| 21-Jul-2006 |
tsutsui | branches: 1.78.10; Some KNF.
|
1.77 |
| 16-Jun-2006 |
tsutsui | - strncpy -> strlcpy - 16 -> sizeof(foo)
|
1.76 |
| 10-Jun-2006 |
tsutsui | branches: 1.76.2; space nits.
|
1.75 |
| 14-May-2006 |
elad | branches: 1.75.2; integrate kauth.
|
1.74 |
| 14-Apr-2006 |
blymn | Make i/o statistics collection more generic, include tape drives and nfs mounts in the set of devices that statistics will be reported on.
|
1.73 |
| 29-Mar-2006 |
tsutsui | Add a missing parenthesis.
|
1.72 |
| 28-Mar-2006 |
thorpej | Use device_unit().
|
1.71 |
| 25-Feb-2006 |
wiz | branches: 1.71.2; 1.71.4; 1.71.6; Fix some typos.
|
1.70 |
| 23-Feb-2006 |
thorpej | Use device_parent().
|
1.69 |
| 11-Dec-2005 |
christos | branches: 1.69.2; 1.69.4; 1.69.6; merge ktrace-lwp.
|
1.68 |
| 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.67 |
| 19-Feb-2005 |
tsutsui | branches: 1.67.6; Include "ioconf.h" for struct cfdriver *_cd decls.
|
1.66 |
| 05-Feb-2005 |
chs | make this compile with DEBUG.
|
1.65 |
| 28-Oct-2004 |
yamt | branches: 1.65.4; 1.65.6; move buffer queue related stuffs from buf.h to their own header, bufq.h.
|
1.64 |
| 28-Aug-2004 |
thorpej | Remove the last vestiges of COMPAT_NOLABEL. It's been 10 years; label your disks already.
|
1.63 |
| 28-Aug-2004 |
thorpej | Use ANSI function decls, static, and const.
|
1.62 |
| 17-Nov-2003 |
tsutsui | TAB/space cleanup.
|
1.61 |
| 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.60 |
| 29-Jun-2003 |
fvdl | branches: 1.60.2; Back out the lwp/ktrace changes. They contained a lot of colateral damage, and need to be examined and discussed more.
|
1.59 |
| 29-Jun-2003 |
thorpej | Adapt to ktrace/lwp changes.
|
1.58 |
| 03-May-2003 |
wiz | DMA, not dma nor Dma.
|
1.57 |
| 02-May-2003 |
dsl | Change return type of readdisklabel() to const char * I hope I've found all the correct places!
|
1.56 |
| 14-Feb-2003 |
gmcgarry | Handle 64-bit daddr_t.
|
1.55 |
| 01-Nov-2002 |
mrg | implement separate read/write disk statistics: - disk_unbusy() gets a new parameter to tell the IO direction. - struct disk_sysctl gets 4 new members for read/write bytes/transfers. when processing hw.diskstats, add the read&write bytes/transfers for the old combined stats to attempt to keep backwards compatibility.
unfortunately, due to multiple bugs, this will cause new kernels and old vmstat/iostat/systat programs to fail. however, the next time this is change it will not fail again.
this is just the kernel portion.
|
1.54 |
| 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.53 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.52 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.51 |
| 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.50 |
| 26-Jul-2002 |
hannken | Convert to new device buffer queue interface.
Approved by: Jason R. Thorpe <thorpej@netbsd.org>
|
1.49 |
| 08-Apr-2002 |
gmcgarry | branches: 1.49.2; Create default disklabel correctly.
|
1.48 |
| 15-Mar-2002 |
gmcgarry | Add RCSIDs.
|
1.47 |
| 10-Feb-2002 |
gmcgarry | Implement DIOCGDEFLABEL ioctl.
|
1.46 |
| 08-Dec-2001 |
gmcgarry | bcopy -> memcpy bzero -> memset bcmp -> memcmp
|
1.45 |
| 16-Sep-2001 |
wiz | branches: 1.45.4; Spell 'occurred' with two 'r's.
|
1.44 |
| 10-Oct-2000 |
he | branches: 1.44.2; 1.44.4; Add randomness sampling from hil, sd and rd devices.
|
1.43 |
| 27-May-2000 |
thorpej | branches: 1.43.4; sleep() -> tsleep()
|
1.42 |
| 19-May-2000 |
thorpej | 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.41 |
| 23-Mar-2000 |
thorpej | New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
|
1.40 |
| 11-Feb-2000 |
kleink | printf format mismatch in DEBUG code (related to already fixed PR hp300/9388).
|
1.39 |
| 07-Feb-2000 |
thorpej | Fix a bug in disksort_*() which caused non-optimal ordering when multiple active partitions were on a single spindle. Add a b_rawblkno member to struct buf which contains the non-partition-relative block number to sort by.
|
1.38 |
| 31-Jan-2000 |
kleink | Make these build again after buf.h/disksort changes.
|
1.37 |
| 21-Jan-2000 |
thorpej | Update for sys/buf.h/disksort_*() changes.
|
1.36 |
| 12-Jan-1998 |
thorpej | branches: 1.36.8; 1.36.14; 1.36.20; Update for changes to config.
|
1.35 |
| 04-Oct-1997 |
thorpej | Copyright assigned to The NetBSD Foundation.
|
1.34 |
| 22-Jul-1997 |
kleink | branches: 1.34.2; Remove old *_UNK style default defines, use standard names from locators.h. Missed in "locators.h" cleanup; reported by Thorsten Frueauf in PR 3906.
|
1.33 |
| 10-Jul-1997 |
kleink | Remove misplaced/unnecessary VM #include cruft; from Thorsten Frueauf <frueauf@ira.uka.de> in PR port-hp300/3851.
|
1.32 |
| 24-Jun-1997 |
thorpej | foosize()'s return value is in DEV_BSIZE units; adjust the size obtained from the disklabel accordingly.
|
1.31 |
| 05-May-1997 |
thorpej | Update for USELEDS changes.
|
1.30 |
| 09-Apr-1997 |
thorpej | Use the %x printf format where appropriate
|
1.29 |
| 02-Apr-1997 |
scottr | Fix printf() and other warnings when compiled with DEBUG defined.
|
1.28 |
| 31-Mar-1997 |
scottr | Add prototypes, and make this compile with -Wall. Remove register modifier from all declarations.
|
1.27 |
| 30-Jan-1997 |
thorpej | Convert to new-style autoconfiguration; old-style config is no longer supported.
|
1.26 |
| 07-Jan-1997 |
thorpej | Bring some sanity into my frazzled existence: - Always ensure that RAW_PART ("c") can be opened. - Disallow unused or non-existent partitions from being opened. - Don't do bounds checking or partition translation on RAW_PART. This is consistent with other disk drivers in the NetBSD source tree, and fixes a condition where the user could not fix a corrupted disklabel due to a bogus offset for partition "c".
|
1.25 |
| 14-Oct-1996 |
thorpej | Set the device class on non-dull devices. This is a transitional thing.
|
1.24 |
| 13-Oct-1996 |
christos | backout previous kprintf changes
|
1.23 |
| 11-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.22 |
| 06-Oct-1996 |
thorpej | Fix kernel crash dumps. Still uses the old format for now.
|
1.21 |
| 06-Jun-1996 |
thorpej | Remove the old-style disk instrumentation support. Nothing uses it anymore.
|
1.20 |
| 14-Feb-1996 |
thorpej | branches: 1.20.4; 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.19 |
| 03-Feb-1996 |
thorpej | Remove bogus "return (0);" in rdmatch() that wiggled its way in uninvited.
|
1.18 |
| 10-Jan-1996 |
thorpej | Kludge around a case where a flaky HP-IB disk might be slow to respond to the identification request in rdmatch(). Similar in spirit to a patch from Jason Downs (written eons ago), but limited to the broken device we're trying to reach. My patch tested (and fixed :-) by Herb Peyerl.
|
1.17 |
| 07-Jan-1996 |
thorpej | New generic disk framework. Highlights:
- New metrics handling. Metrics are now kept in the new `struct disk'. Busy time is now stored as a timeval, and transfer count in bytes.
- Storage for disklabels is now dynamically allocated, so that the size of the disk structure is not machine-dependent.
- Several new functions for attaching and detaching disks, and handling metrics calculation.
Old-style instrumentation is still supported in drivers that did it before. However, old-style instrumentation is being deprecated, and will go away once the userland utilities are updated for the new framework.
For usage and architectural details, see the forthcoming disk(9) manual page.
|
1.16 |
| 09-Dec-1995 |
thorpej | Pass the correct number of arguments to readdisklabel().
|
1.15 |
| 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.14 |
| 19-Nov-1995 |
thorpej | Re-arrange things such that we can print out disk geometry regardless of COMPAT_NOLABEL.
XXX One day when the world doesn't assume DEV_BSIZE bytes/sector, we'll be able to actually use the stuff sensed from the drive, rather than a table.
|
1.13 |
| 09-Oct-1995 |
thorpej | Pass correct number of arguments to hpibgo().
|
1.12 |
| 04-Aug-1995 |
thorpej | Update for conf.h changes.
|
1.11 |
| 10-Apr-1995 |
mycroft | kernel_pmap --> pmap_kernel()
|
1.10 |
| 26-Oct-1994 |
cgd | new RCS ID format.
|
1.9 |
| 27-May-1994 |
mycroft | Bug fixes from Mike Hibler.
|
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 |
| 05-May-1994 |
mycroft | Most of the changes needed to make this continue to run.
|
1.5 |
| 10-Feb-1994 |
mycroft | Add arg to ioctl functions. Clean up #includes.
|
1.4 |
| 11-Jan-1994 |
mycroft | *strategy functions return void.
|
1.3 |
| 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.2 |
| 22-May-1993 |
cgd | add rcsids to everything and clean up headers
|
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.20.4.1 |
| 06-Jun-1996 |
thorpej | Update from trunk:
Remove old-style disk instrumentation support. Nothing uses it anymore.
|
1.34.2.1 |
| 14-Oct-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.36.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.36.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.36.8.1 |
| 12-Oct-2000 |
he | Pull up revision 1.44 (requested by he): Add randomness sampling for hil, sd and rd on the hp300 port.
|
1.43.4.1 |
| 18-Oct-2000 |
tv | Pullup 1.44 [he]: Add randomness sampling from hil, sd and rd devices.
|
1.44.4.5 |
| 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.44.4.4 |
| 06-Sep-2002 |
jdolecek | sync kqueue branch with HEAD
|
1.44.4.3 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.44.4.2 |
| 16-Mar-2002 |
jdolecek | Catch up with -current.
|
1.44.4.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.44.2.2 |
| 10-Oct-2001 |
fvdl | Convert all remaining devices.
|
1.44.2.1 |
| 01-Oct-2001 |
fvdl | Catch up with -current.
|
1.45.4.9 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.45.4.8 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.45.4.7 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.45.4.6 |
| 01-Aug-2002 |
nathanw | Catch up to -current.
|
1.45.4.5 |
| 17-Apr-2002 |
nathanw | Catch up to -current.
|
1.45.4.4 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.45.4.3 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.45.4.2 |
| 08-Jan-2002 |
nathanw | Catch up to -current.
|
1.45.4.1 |
| 16-Sep-2001 |
nathanw | file rd.c was added on branch nathanw_sa on 2002-01-08 00:24:36 +0000
|
1.49.2.2 |
| 30-Aug-2002 |
gehenna | catch up with -current.
|
1.49.2.1 |
| 17-May-2002 |
gehenna | Add device switch.
|
1.60.2.9 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.60.2.8 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.60.2.7 |
| 06-Feb-2005 |
skrll | Sync with HEAD.
|
1.60.2.6 |
| 24-Jan-2005 |
skrll | Adapt to branch.
|
1.60.2.5 |
| 02-Nov-2004 |
skrll | Sync with HEAD.
|
1.60.2.4 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.60.2.3 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.60.2.2 |
| 03-Sep-2004 |
skrll | Sync with HEAD
|
1.60.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.65.6.2 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.65.6.1 |
| 12-Feb-2005 |
yamt | sync with head.
|
1.65.4.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.67.6.4 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.67.6.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.67.6.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.67.6.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.69.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.69.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.69.2.1 |
| 01-Mar-2006 |
yamt | sync with head.
|
1.71.6.2 |
| 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.71.6.1 |
| 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.71.4.1 |
| 19-Apr-2006 |
elad | sync with head - hopefully this will work
|
1.71.2.4 |
| 11-Aug-2006 |
yamt | sync with head
|
1.71.2.3 |
| 26-Jun-2006 |
yamt | sync with head.
|
1.71.2.2 |
| 24-May-2006 |
yamt | sync with head.
|
1.71.2.1 |
| 01-Apr-2006 |
yamt | sync with head.
|
1.75.2.1 |
| 19-Jun-2006 |
chap | Sync with head.
|
1.76.2.1 |
| 13-Jul-2006 |
gdamore | Merge from HEAD.
|
1.78.10.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.80.10.2 |
| 16-Oct-2007 |
garbled | Sync with HEAD
|
1.80.10.1 |
| 03-Oct-2007 |
garbled | Sync with HEAD
|
1.80.2.3 |
| 20-Aug-2007 |
ad | - Alter disk attach/detach to fix a panic when closing a vnd device. - Sync with HEAD.
|
1.80.2.2 |
| 19-Aug-2007 |
ad | - Back out the biodone() changes. - Eliminate B_ERROR (from HEAD).
|
1.80.2.1 |
| 15-Jul-2007 |
ad | Sync with head.
|
1.81.4.1 |
| 15-Aug-2007 |
skrll | Sync with HEAD.
|
1.81.2.1 |
| 07-Aug-2007 |
matt | Sync with HEAD.
|
1.82.8.1 |
| 14-Oct-2007 |
yamt | sync with head.
|
1.82.6.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.82.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.84.16.4 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.84.16.3 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.84.16.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.84.16.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.85.4.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.85.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.85.2.2 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.85.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.86.4.1 |
| 18-Jun-2008 |
simonb | Sync with head.
|
1.86.2.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.88.4.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.89.10.1 |
| 17-Feb-2011 |
bouyer | Sync with HEAD
|
1.89.8.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.89.6.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.91.6.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.91.2.3 |
| 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.91.2.2 |
| 30-Oct-2012 |
yamt | sync with head
|
1.91.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.92.6.4 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.92.6.3 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.92.6.2 |
| 02-Dec-2012 |
tls | Don't pass NULL struct dkdriver to disk_init. That's seriously bogus.
|
1.92.6.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.93.2.1 |
| 18-May-2014 |
rmind | sync with head
|
1.95.2.2 |
| 10-Aug-2014 |
tls | Rebase.
|
1.95.2.1 |
| 07-Apr-2014 |
tls | Be a little more clear and consistent about harvesting entropy from devices:
1) deprecate RND_FLAG_NO_ESTIMATE
2) define RND_FLAG_COLLECT_TIME, RND_FLAG_COLLECT_VALUE
3) define RND_FLAG_ESTIMATE_TIME, RND_FLAG_ESTIMATE_VALUE
4) define RND_FLAG_DEFAULT: RND_FLAG_COLLECT_TIME| RND_FLAG_COLLECT_VALUE|RND_FLAG_ESTIMATE_TIME
5) Make entropy harvesting from environmental sensors a little more generic and remove it from individual sensor drivers.
6) Remove individual open-coded delta-estimators for values from a few places in the tree (uvm, environmental drivers).
7) 0 -> RND_FLAG_DEFAULT, actually gather entropy from various drivers that had stubbed out code, other minor cleanups.
|
1.98.4.2 |
| 06-Jun-2015 |
skrll | Sync with HEAD
|
1.98.4.1 |
| 06-Apr-2015 |
skrll | Sync with HEAD
|
1.101.22.2 |
| 06-Dec-2022 |
martin | Pull up following revision(s) (requested by tsutsui in ticket #1552):
sys/arch/hp300/dev/rd.c: revision 1.120 sys/arch/hp300/dev/rd.c: revision 1.121 sys/arch/hp300/dev/rd.c: revision 1.122 sys/arch/hp300/dev/rd.c: revision 1.123 sys/arch/hp300/dev/rd.c: revision 1.124 sys/arch/hp300/dev/rdreg.h: revision 1.19 sys/arch/hp300/dev/rd.c: revision 1.111 sys/arch/hp300/dev/rd.c: revision 1.112 sys/arch/hp300/dev/rd.c: revision 1.113 sys/arch/hp300/stand/common/rd.c: revision 1.12 sys/arch/hp300/dev/rd.c: revision 1.114 sys/arch/hp300/stand/common/rd.c: revision 1.13 sys/arch/hp300/dev/rd.c: revision 1.115 sys/arch/hp300/stand/common/rd.c: revision 1.14 sys/arch/hp300/dev/rd.c: revision 1.116 sys/arch/hp300/stand/common/rd.c: revision 1.15 sys/arch/hp300/dev/rd.c: revision 1.117 sys/arch/hp300/dev/rd.c: revision 1.118 sys/arch/hp300/dev/rd.c: revision 1.119 sys/arch/hp300/dev/rdvar.h: revision 1.27 sys/arch/hp300/dev/rdreg.h: revision 1.20
Sync a list of HP-IB disk IDs with kernel's one. Now bootloader can boot from 2202A, 7908A, 7911A, and 7941A. Tested on 425t and HPDisk.
Make local variables static and read only ones const.
Use common macro for numbers of cylinders and blocks for HP-IB disks. No binary changes.
Fix "rd(4) at punits not configured on HPDisk are misprobed" problem. - check not only stat value returned by C_QSTAT command against each punit but also desc.d_name returned by C_DESC command because it looks HPDisk responds to commands against punits supported but not-configured punits at 1-3 - prepare rdreset_unit() function to manage reset punit ops during probe without valid softc
The stragety is taken from OpenBSD with several modification. Tested on 425t with real 9122D and HPDisk emulating two 7937H drives. Should be pulled up to netbsd-9.
Remove now unused buffer members from softc prepared only for rdreset().
Use proper integer types for HP-IB xfer parameters. No visible regression on 425t and HPDisk.
Sync with rdreg.h integer type changes.
Remove unnecessary declarations.
Check bounds of RAW_PART by bounds_check_with_mediasize() as other drivers. With this check, dd(1) without a count value against a raw partition is terminated properly at the end of media. Tested on 425t and HPDisk. Should be pulled up to netbsd-9.
Check bounds of each partition by MI bounds_check_with_label(9). The previous implementation was committed in rev 1.26 about 26 years ago and it looks there is no quirk to use the old MD one.
Pass a correct dev_t arg to disk_ioctl(). Probably harmless.
Remove a duplicated static function declaration.
Set disk_geom parameters required by DIOCGPARTINFO in disk_ioctl(). With this change raid(4) no longer complains before mountroot: RAIDframe: can't get disk size for dev rd0 (22) Should be pulled up to netbsd-9.
Use proper RAW_PART macro rather than a magic number.
Remove more duplicated static function declarations.
Misc KNF and cosmetics.
Add empty DIOCCACHESYNC ioctl(2) for rd(4). Without this raid(4) always complains on various raidctl(8) ops: raid0: cache flush[0] to component 0 failed (22) RAID1 configured by raid(4) just works HP-IB disks on hp300.
Explicitly include <sys/kernel.h> for hz(9) as man pages says. XXX: it looks sys/param.h r1.615 and later also has extern int hz
|
1.101.22.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
|
1.102.2.1 |
| 03-Apr-2021 |
thorpej | Sync with HEAD.
|
1.103.4.1 |
| 01-Aug-2021 |
thorpej | Sync with HEAD.
|