History log of /src/sys/arch/x68k/dev/fd.c |
Revision | | Date | Author | Comments |
1.129 |
| 07-Jan-2024 |
isaki | TAB/space/indent cleanup.
|
1.128 |
| 17-Dec-2023 |
andvar | s/FD_DEBUG/FDDEBUG/ for consistency.
|
1.127 |
| 26-May-2022 |
tsutsui | Make local functions and variable static.
|
1.126 |
| 23-May-2022 |
tsutsui | Remove unused variables.
|
1.125 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.124 |
| 24-Apr-2021 |
thorpej | branches: 1.124.8; Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
|
1.123 |
| 10-Nov-2019 |
chs | branches: 1.123.10; in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT and remove code to handle failures that can no longer happen.
|
1.122 |
| 08-Feb-2019 |
mrg | make *fd*.c's fd_dev_to_type() always a static inline. some have it as a const, and have code to copy the defaults to modify them before using them, but that probably requires a real test to feel confident in changing.
|
1.121 |
| 03-Sep-2018 |
riastradh | Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int. The generic name min/max should not silently truncate to 32 bits on 64-bit systems. This is purely a name change -- no functional change intended.
HOWEVER! Some subsystems have
#define min(a, b) ((a) < (b) ? (a) : (b)) #define max(a, b) ((a) > (b) ? (a) : (b))
even though our standard name for that is MIN/MAX. Although these may invite multiple evaluation bugs, these do _not_ cause integer truncation.
To avoid `fixing' these cases, I first changed the name in libkern, and then compile-tested every file where min/max occurred in order to confirm that it failed -- and thus confirm that nothing shadowed min/max -- before changing it.
I have left a handful of bootloaders that are too annoying to compile-test, and some dead code:
cobalt ews4800mips hp300 hppa ia64 luna68k vax acorn32/if_ie.c (not included in any kernels) macppc/if_gm.c (superseded by gem(4))
It should be easy to fix the fallout once identified -- this way of doing things fails safe, and the goal here, after all, is to _avoid_ silent integer truncations, not introduce them.
Maybe one day we can reintroduce min/max as type-generic things that never silently truncate. But we should avoid doing that for a while, so that existing code has a chance to be detected by the compiler for conversion to uimin/uimax without changing the semantics until we can properly audit it all. (Who knows, maybe in some cases integer truncation is actually intended!)
|
1.120 |
| 11-Aug-2017 |
isaki | branches: 1.120.2; 1.120.4; Allow dmac_alloc_channel() to specify DCR and OCR. FDC uses 'Cycle Steal Mode with Hold' but ADPCM should use 'Cycle Steal Mode without Hold' on x68k. From Y.Suhagara and it was found by XM6i.
|
1.119 |
| 12-Jan-2017 |
isaki | branches: 1.119.8; Fix the possibility of off-by-one on the grammer. Reported by coypu. Currently it never happens because type is (minor number % 7) and the arraycount of fd_types[] is 8. I.e., it is a dead code... However, when the capacity of the FDTYPE() changes or the arraycount of fd_types[] changes, this correction will be effective.
|
1.118 |
| 11-Jul-2015 |
kamil | branches: 1.118.2; Improve spelling: regsiter -> register
This change is non-functional.
Approved by <riastradh>, <pgoyette>
|
1.117 |
| 26-Apr-2015 |
mlelstv | Use C99-style initializers for struct dkdriver.
|
1.116 |
| 13-Apr-2015 |
riastradh | MD rnd.h cleanups. Please let me know if I broke anything!
|
1.115 |
| 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.114 |
| 02-Jan-2015 |
christos | restore part decl.
|
1.113 |
| 01-Jan-2015 |
christos | declare error
|
1.112 |
| 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.111 |
| 10-Aug-2014 |
tls | branches: 1.111.4; Merge tls-earlyentropy branch into HEAD.
|
1.110 |
| 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.109 |
| 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.108 |
| 26-Mar-2014 |
christos | branches: 1.108.2; kill sprintf, fix unused.
|
1.107 |
| 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.106 |
| 24-May-2013 |
christos | branches: 1.106.2; kill bogus inline
|
1.105 |
| 14-Oct-2012 |
tsutsui | KNF and space nits
|
1.104 |
| 14-Oct-2012 |
tsutsui | Add floppy format support. Mostly taken from sys/dev/isa/fd.c.
Tested both fdNa (1232KB, 1024bytes/sector, 8sectors/track) and fdNc (1200KB, 512bytes/sector, 15sectors/track) format on X68030 using fdformat(1).
Finally we can prepare NetBSD/x68k install floppies without Human68k (except actual initial bootstrap).
|
1.103 |
| 14-Oct-2012 |
tsutsui | Terminate DMAC and call bus_dmamap_unload(9) properly in all FDC xfer error paths, as sys/dev/isa/fd.c does. Fixes unexpected DMAC errors (and possible VM panic due to un-unloaded dmamap) on the first floppy access after read/write errors.
|
1.102 |
| 14-Oct-2012 |
tsutsui | Before probing floppy drives, call NE7CMD_SENSEI and fdcresult() to drain possible pending FDC interrupts. Taken from sys/dev/isa/fd.c. Hopefully might fix occasional fd drive probe failure (but not confirmed).
|
1.101 |
| 15-May-2012 |
tsutsui | branches: 1.101.2; - check bus_space_map(9) return value - use BUS_SPACE_MAP_SHIFTED_ODD for clarify - define and use proper macro instead of magic
|
1.100 |
| 13-May-2012 |
tsutsui | KNF and cosmetics. No binary change.
|
1.99 |
| 13-May-2012 |
tsutsui | - use <sys/bus.h> rather than <machine/bus.h> - no need to include uvm_extern.h - include "ioconf.h" for struct cfdriver foo_cd
|
1.98 |
| 12-May-2012 |
tsutsui | Explicitly specify a proper FDC data register address for HD63450 DMAC to avoid confusion.
Previous one (fdc->sc_addr + fddata) wasn't a right address for the FDC's data register but one for the command register by accident, but FDC ignores A0 address input (connected to A1 of x68k address bus) during DMA xfer (i.e. when DACK is asserted) so it happened to work as expected on the real X680x0 hardware, but caused trouble on emulators.
The inconsistency was found by Y.Sugahara during debugging XM6i emulator (and it will be fixed in the next release). FDC behavior during DMA is confirmed by uPD72068 hardware application note.
XXX: There is no proper MI API to specify DMA address for DMA controller (like MC68450) to access devices mapped to memory space by bus_space(9).
|
1.97 |
| 06-May-2012 |
tsutsui | Make x68k's floppy driver actually work with proper bounce buffer xfer ops on machines with extended high memories:
- dev/fd.c: - add missing bus_dmamap_sync(9) POSTREAD/POSTWRITE ops
- x68k/machdep.c: - update avail_end variable (which is used to check DMA'able memory range in intio.c) properly per probed extended memory regions
The problem was found during debugging XM6i's FDC emulation by Y.Sugahara, isaki@, and me.
Should be pulled up to netbsd-6.
|
1.96 |
| 02-Feb-2012 |
tls | branches: 1.96.2; 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.95 |
| 19-Nov-2011 |
tls | branches: 1.95.2; First step of random number subsystem rework described in <20111022023242.BA26F14A158@mail.netbsd.org>. This change includes the following:
An initial cleanup and minor reorganization of the entropy pool code in sys/dev/rnd.c and sys/dev/rndpool.c. Several bugs are fixed. Some effort is made to accumulate entropy more quickly at boot time.
A generic interface, "rndsink", is added, for stream generators to request that they be re-keyed with good quality entropy from the pool as soon as it is available.
The arc4random()/arc4randbytes() implementation in libkern is adjusted to use the rndsink interface for rekeying, which helps address the problem of low-quality keys at boot time.
An implementation of the FIPS 140-2 statistical tests for random number generator quality is provided (libkern/rngtest.c). This is based on Greg Rose's implementation from Qualcomm.
A new random stream generator, nist_ctr_drbg, is provided. It is based on an implementation of the NIST SP800-90 CTR_DRBG by Henric Jungheim. This generator users AES in a modified counter mode to generate a backtracking-resistant random stream.
An abstraction layer, "cprng", is provided for in-kernel consumers of randomness. The arc4random/arc4randbytes API is deprecated for in-kernel use. It is replaced by "cprng_strong". The current cprng_fast implementation wraps the existing arc4random implementation. The current cprng_strong implementation wraps the new CTR_DRBG implementation. Both interfaces are rekeyed from the entropy pool automatically at intervals justifiable from best current cryptographic practice.
In some quick tests, cprng_fast() is about the same speed as the old arc4randbytes(), and cprng_strong() is about 20% faster than rnd_extract_data(). Performance is expected to improve.
The AES code in src/crypto/rijndael is no longer an optional kernel component, as it is required by cprng_strong, which is not an optional kernel component.
The entropy pool output is subjected to the rngtest tests at startup time; if it fails, the system will reboot. There is approximately a 3/10000 chance of a false positive from these tests. Entropy pool _input_ from hardware random numbers is subjected to the rngtest tests at attach time, as well as the FIPS continuous-output test, to detect bad or stuck hardware RNGs; if any are detected, they are detached, but the system continues to run.
A problem with rndctl(8) is fixed -- datastructures with pointers in arrays are no longer passed to userspace (this was not a security problem, but rather a major issue for compat32). A new kernel will require a new rndctl.
The sysctl kern.arandom() and kern.urandom() nodes are hooked up to the new generators, but the /dev/*random pseudodevices are not, yet.
Manual pages for the new kernel interfaces are forthcoming.
|
1.94 |
| 10-Apr-2011 |
tsutsui | branches: 1.94.4; Fix hangup on the first floppy access since 2008. Problem was reported by isaki@.
On X680x0 (and most other machines other than ISA FDC), the ready line from FDD is connected to FDC and fdc driver can be notified of the ready state after fd_set_motor() by interrupts. In this case no need to use callout(9) to wait the FDD motor stabilized, and the callout(9) method used in ISA fdc(4) driver rather caused infinite unhandled interrupts since callout(9) was no longer invoked during interrupt storm after vmlocking2 merge, I guess.
Should be pulled up to netbsd-5.
|
1.93 |
| 06-Jun-2010 |
mrg | branches: 1.93.2; fix PR 6724 - convert m68k options to defflag's. this means that M680[12346] are now available from opt_m68k_arch.h. FPSP meantioned in the PR has already been fixed, and i could not find any more.
i built these kernels to ensure i did not break their builds:
amiga: GENERIC DRACO atari: HADES FALCON MILAN-PCIIDE mac68k: GENERIC sun2: GENERIC sun3: GENERIC GENERIC3X cesfic: attempted GENERIC, does not build due to lack of machine/bus.h hp300: GENERIC luna68k: GENERIC mvme68k: GENERIC news68k: GENERIC next68k: GENERIC x68k: GENERIC
|
1.92 |
| 18-Jan-2009 |
isaki | branches: 1.92.4; 1.92.6; Clean up header files.
|
1.91 |
| 13-Jan-2009 |
yamt | g/c BUFQ_FOO() macros and use bufq_foo() directly.
|
1.90 |
| 10-Jan-2009 |
isaki | Clean up messages. - fdcintr: remove duplicated status message. - fdioctl: make it easy to track ioctl.
|
1.89 |
| 10-Jan-2009 |
isaki | fdc->sc_dev is not necessary.
|
1.88 |
| 18-Dec-2008 |
isaki | Make it compilable again.
|
1.87 |
| 16-Dec-2008 |
christos | replace bitmask_snprintf(9) with snprintb(3)
|
1.86 |
| 05-Dec-2008 |
isaki | Use TAILQ_* macros.
|
1.85 |
| 29-Jun-2008 |
isaki | branches: 1.85.2; 1.85.4; 1.85.6; Make it compilable even if FDDEBUG was defined.
|
1.84 |
| 25-Jun-2008 |
isaki | Link to device_t. I had forgotten it in previous commit.
|
1.83 |
| 25-Jun-2008 |
isaki | Split device_t/softc. Use aprint*() and device_xname().
|
1.82 |
| 14-Jun-2008 |
isaki | Fix compile errors.
|
1.81 |
| 13-Jun-2008 |
cegger | use device_lookup_private to get softc
|
1.80 |
| 28-Apr-2008 |
martin | branches: 1.80.2; 1.80.4; Remove clause 3 and 4 from TNF licenses
|
1.79 |
| 17-Oct-2007 |
garbled | branches: 1.79.16; 1.79.18; 1.79.20; 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.78 |
| 08-Oct-2007 |
ad | Merge disk init changes from the vmlocking branch. These seperate init / destroy of 'struct disk' from attach / detach.
|
1.77 |
| 29-Jul-2007 |
ad | branches: 1.77.4; 1.77.6; 1.77.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.76 |
| 09-Jul-2007 |
ad | branches: 1.76.2; 1.76.4; Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
1.75 |
| 20-May-2007 |
isaki | Make it compilable with FDDEBUG.
|
1.74 |
| 12-May-2007 |
isaki | Clean up white spaces and tabs.
|
1.73 |
| 11-Mar-2007 |
isaki | branches: 1.73.2; 1.73.8; white space, indent and KNF.
|
1.72 |
| 05-Mar-2007 |
he | branches: 1.72.2; Cast to char* before doing pointer arithmetic.
|
1.71 |
| 04-Mar-2007 |
christos | Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.70 |
| 14-Apr-2006 |
blymn | branches: 1.70.14; 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.69 |
| 28-Mar-2006 |
thorpej | Use device_unit().
|
1.68 |
| 23-Feb-2006 |
thorpej | branches: 1.68.2; 1.68.4; 1.68.6; Use device_parent().
|
1.67 |
| 24-Dec-2005 |
perry | branches: 1.67.2; 1.67.4; 1.67.6; Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
|
1.66 |
| 11-Dec-2005 |
christos | merge ktrace-lwp.
|
1.65 |
| 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.64 |
| 12-Jun-2005 |
he | branches: 1.64.2; Sprinkle some consts to allow this to compile with -Wcast-qual.
|
1.63 |
| 18-Jan-2005 |
chs | de-__P, remove register, ansify.
|
1.62 |
| 28-Oct-2004 |
yamt | branches: 1.62.4; move buffer queue related stuffs from buf.h to their own header, bufq.h.
|
1.61 |
| 08-May-2004 |
minoura | An unexported header file was #included from an exported header file. Introduce <machine/opmreg.h> and move some definitions useful to userland progs.
|
1.60 |
| 15-Nov-2003 |
isaki | make it compilable even if FDDEBUG was defined.
|
1.59 |
| 01-Nov-2003 |
jdolecek | fix several places where variables might be used uninitialized
|
1.58 |
| 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.57 |
| 15-Jul-2003 |
lukem | rcsid
|
1.56 |
| 18-Jun-2003 |
drochner | branches: 1.56.2; don't #include <sys/dkstat.h> where it is (appearently) unused
|
1.55 |
| 03-May-2003 |
wiz | DMA, not dma nor Dma.
|
1.54 |
| 01-Apr-2003 |
thorpej | Use PAGE_SIZE rather than NBPG.
|
1.53 |
| 02-Feb-2003 |
isaki | Fix printf format for DIAGNOSTIC, in the wake of daddr_t having changed. Use PRId64, instead of %lld.
|
1.52 |
| 25-Jan-2003 |
isaki | Make it compilable with 64bit daddr_t.
|
1.51 |
| 01-Jan-2003 |
thorpej | Use aprint_normal() for cfprint routines.
|
1.50 |
| 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.49 |
| 20-Oct-2002 |
isaki | Remove unbalanced parenthesis in debug message.
|
1.48 |
| 13-Oct-2002 |
isaki | Style fixes.
|
1.47 |
| 02-Oct-2002 |
thorpej | Add trailing ; to CFATTACH_DECL.
|
1.46 |
| 01-Oct-2002 |
thorpej | Missed one use of CFATTACH_DECL().
|
1.45 |
| 01-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.44 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.43 |
| 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.42 |
| 01-Aug-2002 |
hannken | Convert to new device buffer queue interface.
Approved by: NISHIMURA Takeshi <nsmrtks@netbsd.org>
|
1.41 |
| 31-Jul-2002 |
isaki | Fix compile warnings in debug code.
|
1.40 |
| 27-Dec-2001 |
wiz | branches: 1.40.8; bcopy/bcmp/bzero -> memcpy/memcmp/memset
|
1.39 |
| 19-Dec-2001 |
minoura | Implement bus_dmamap_sync properly. dma_cachectl is now used only for DMAC array chain.
|
1.38 |
| 25-Nov-2001 |
minoura | Avoid using array chaining mode of DMAC.
|
1.37 |
| 08-Jul-2001 |
wiz | branches: 1.37.2; 1.37.4; 1.37.8; Correct various misspellings of 'transfer' and inflected forms.
|
1.36 |
| 02-May-2001 |
minoura | Do not use constants, but macros.
|
1.35 |
| 29-Jun-2000 |
mrg | branches: 1.35.2; remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
|
1.34 |
| 18-Apr-2000 |
minoura | Explicitly include opt_m680x0.h.
|
1.33 |
| 07-Apr-2000 |
thorpej | Use separate callouts for motor-on and motor-off. Fixes a condition where the floppy driver would wedge because a motor-on timeout would be cancelled by another I/O operation cancelling a motor-off timeout.
From enami tsugutomo <enami@sm.sony.co.jp>.
|
1.32 |
| 27-Mar-2000 |
minoura | Make this compile (typo in callout change).
|
1.31 |
| 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.30 |
| 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.29 |
| 21-Jan-2000 |
thorpej | Update for sys/buf.h/disksort_*() changes.
|
1.28 |
| 24-Mar-1999 |
minoura | branches: 1.28.8; 1.28.14; Shut up gcc -Wall.
|
1.27 |
| 24-Mar-1999 |
mrg | completely remove Mach VM support. all that is left is the all the header files as UVM still uses (most of) these.
|
1.26 |
| 18-Mar-1999 |
minoura | Correct rnd_attach_source args.
|
1.25 |
| 16-Mar-1999 |
minoura | Merged minoura_x68k_bus_h branch.
|
1.24 |
| 08-Feb-1999 |
bouyer | Change DIOCEJECT to do what's needed to eject a device before the eject command (unlock for sd and cd) if no other partitions are open, return EBUSY otherwise. DIOCEJECT will have the old semantic if its argument is not 0. The old ioctl has been renamed to ODIOCEJECT for binary compatibility.
|
1.23 |
| 22-Aug-1998 |
minoura | branches: 1.23.6; Eliminated vm_offset_t and vm_size_t.
|
1.22 |
| 15-Aug-1998 |
mycroft | Assign copyrights to TNF.
|
1.21 |
| 15-Aug-1998 |
mycroft | Make copyright notices with my name consistent.
|
1.20 |
| 04-Aug-1998 |
minoura | __BROKEN_INDIRECT_CONFIG fixes.
|
1.19 |
| 04-Jul-1998 |
jonathan | defopt DDB.
|
1.18 |
| 30-Jun-1998 |
msaitoh | sync with -current after a long silence
|
1.17 |
| 24-May-1998 |
is | Back out the defopt for M680?0. As pointed out to me, this breaks ports which dont use the M680?0 the way Amiga, Atari, Mac68k, and X68k do. I must have missed this in the past discussion about this project.
|
1.16 |
| 23-May-1998 |
is | Move M680[2346]0 to opt_m68kcpu.h. XXX Some explicit dependencies could be removed now from the individual arch/$ARCH/conf/Makefile.$ARCH files, but this is still to be done.
|
1.15 |
| 12-Jan-1998 |
thorpej | Update for changes to config.
|
1.14 |
| 12-Oct-1997 |
oki | Added prototype.
|
1.13 |
| 10-Oct-1997 |
oki | Fdopen --> fdopen
|
1.12 |
| 17-Jul-1997 |
jtk | branches: 1.12.2; use locator defines in "locators.h" to index cf_loc[]
|
1.11 |
| 02-Apr-1997 |
oki | Add bits[64] declaration
|
1.10 |
| 05-Feb-1997 |
oki | Use bitmask_snprintf (from i386)
|
1.9 |
| 31-Jan-1997 |
thorpej | Use new machine-independent mountroothook code.
|
1.8 |
| 13-Oct-1996 |
christos | backout previous kprintf change
|
1.7 |
| 11-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.6 |
| 27-Aug-1996 |
cgd | change cfprint_t type definition to take a const char *, rather than a char *, because that's what was really intended, and because if the print function modifies the string, various things could become unhappy (so the string should _not_ be modified).
|
1.5 |
| 11-Aug-1996 |
oki | drive 2 (or 3) couldn't access with drive 0 (or 1). fixed this.
|
1.4 |
| 08-Jul-1996 |
oki | move wait for insert system floppy to mountroot_hook stuff
|
1.3 |
| 05-Jun-1996 |
oki | fixed compiler error at kvtop().
|
1.2 |
| 21-May-1996 |
oki | branches: 1.2.2; Some cleanup. - Add missing return-type of function. - Add missing prototype. - some gcc -Wall printf warning.
|
1.1 |
| 05-May-1996 |
oki | branches: 1.1.1; Initial revision
|
1.1.1.1 |
| 05-May-1996 |
oki | NetBSD/x68k, by Masaru Oki.
|
1.2.2.3 |
| 16-Aug-1996 |
jtc | Pulled up from rev 1.5 by request from oki
|
1.2.2.2 |
| 08-Jul-1996 |
jtc | Pulled up from rev 1.4 by request from Masaru Oki
|
1.2.2.1 |
| 05-Jun-1996 |
oki | pull up from the trunk: >fixed compiler error at kvtop().
|
1.12.2.1 |
| 14-Oct-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.23.6.5 |
| 14-Mar-1999 |
minoura | Mis-sync.
|
1.23.6.4 |
| 14-Mar-1999 |
minoura | Sync.
|
1.23.6.3 |
| 13-Feb-1999 |
minoura | Use BUS_SPACE_MAP_SHIFTED. Flush the data cache for the transfer buffer. Handle INTIOCF_{INTR,DMA,DMAINTR}_DEFAULT cases.
|
1.23.6.2 |
| 10-Feb-1999 |
minoura | Sync with other ports'(i386,sparc) fd.c. Use dma_cachectl. note: still unstable especially on soft err.
|
1.23.6.1 |
| 02-Feb-1999 |
minoura | fdc at intio.
|
1.28.14.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.28.8.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.35.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.37.8.8 |
| 03-Jan-2003 |
thorpej | Sync with HEAD.
|
1.37.8.7 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.37.8.6 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.37.8.5 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.37.8.4 |
| 13-Aug-2002 |
nathanw | Catch up to -current.
|
1.37.8.3 |
| 01-Aug-2002 |
nathanw | Catch up to -current.
|
1.37.8.2 |
| 08-Jan-2002 |
nathanw | Catch up to -current.
|
1.37.8.1 |
| 08-Jul-2001 |
nathanw | file fd.c was added on branch nathanw_sa on 2002-01-08 00:28:38 +0000
|
1.37.4.1 |
| 10-Oct-2001 |
fvdl | Convert all remaining devices.
|
1.37.2.3 |
| 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.37.2.2 |
| 06-Sep-2002 |
jdolecek | sync kqueue branch with HEAD
|
1.37.2.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.40.8.2 |
| 31-Aug-2002 |
gehenna | catch up with -current.
|
1.40.8.1 |
| 17-May-2002 |
gehenna | Add device switch.
|
1.56.2.7 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.56.2.6 |
| 04-Feb-2005 |
skrll | Adapt to branch.
|
1.56.2.5 |
| 24-Jan-2005 |
skrll | Sync with HEAD.
|
1.56.2.4 |
| 02-Nov-2004 |
skrll | Sync with HEAD.
|
1.56.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.56.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.56.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.62.4.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.64.2.3 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.64.2.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.64.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.67.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.67.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.67.2.1 |
| 01-Mar-2006 |
yamt | sync with head.
|
1.68.6.2 |
| 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.68.6.1 |
| 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.68.4.1 |
| 19-Apr-2006 |
elad | sync with head - hopefully this will work
|
1.68.2.2 |
| 24-May-2006 |
yamt | sync with head.
|
1.68.2.1 |
| 01-Apr-2006 |
yamt | sync with head.
|
1.70.14.2 |
| 17-May-2007 |
yamt | sync with head.
|
1.70.14.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.72.2.5 |
| 20-Aug-2007 |
ad | - Alter disk attach/detach to fix a panic when closing a vnd device. - Sync with HEAD.
|
1.72.2.4 |
| 19-Aug-2007 |
ad | - Back out the biodone() changes. - Eliminate B_ERROR (from HEAD).
|
1.72.2.3 |
| 15-Jul-2007 |
ad | Sync with head.
|
1.72.2.2 |
| 27-May-2007 |
ad | Sync with head.
|
1.72.2.1 |
| 13-Mar-2007 |
ad | Sync with head.
|
1.73.8.3 |
| 16-Oct-2007 |
garbled | Sync with HEAD
|
1.73.8.2 |
| 03-Oct-2007 |
garbled | Sync with HEAD
|
1.73.8.1 |
| 22-May-2007 |
matt | Update to HEAD.
|
1.73.2.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.76.4.1 |
| 15-Aug-2007 |
skrll | Sync with HEAD.
|
1.76.2.1 |
| 07-Aug-2007 |
matt | Sync with HEAD.
|
1.77.8.1 |
| 14-Oct-2007 |
yamt | sync with head.
|
1.77.6.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.77.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.79.20.3 |
| 11-Aug-2010 |
yamt | sync with head.
|
1.79.20.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.79.20.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.79.18.2 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.79.18.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.79.16.4 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.79.16.3 |
| 02-Jul-2008 |
mjf | Sync with HEAD.
|
1.79.16.2 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.79.16.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.80.4.3 |
| 03-Jul-2008 |
simonb | Sync with head.
|
1.80.4.2 |
| 27-Jun-2008 |
simonb | Sync with head.
|
1.80.4.1 |
| 18-Jun-2008 |
simonb | Sync with head.
|
1.80.2.2 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.80.2.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.85.6.1 |
| 20-May-2011 |
bouyer | Pull up following revision(s) (requested by tsutsui in ticket #1617): sys/arch/x68k/dev/fd.c: revision 1.94 via patch Fix hangup on the first floppy access since 2008. Problem was reported by isaki@. On X680x0 (and most other machines other than ISA FDC), the ready line from FDD is connected to FDC and fdc driver can be notified of the ready state after fd_set_motor() by interrupts. In this case no need to use callout(9) to wait the FDD motor stabilized, and the callout(9) method used in ISA fdc(4) driver rather caused infinite unhandled interrupts since callout(9) was no longer invoked during interrupt storm after vmlocking2 merge, I guess. Should be pulled up to netbsd-5.
|
1.85.4.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.85.2.1 |
| 13-Dec-2008 |
haad | Update haad-dm branch to haad-dm-base2.
|
1.92.6.2 |
| 21-Apr-2011 |
rmind | sync with head
|
1.92.6.1 |
| 03-Jul-2010 |
rmind | sync with head
|
1.92.4.1 |
| 17-Aug-2010 |
uebayasi | Sync with HEAD.
|
1.93.2.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.94.4.4 |
| 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.94.4.3 |
| 30-Oct-2012 |
yamt | sync with head
|
1.94.4.2 |
| 23-May-2012 |
yamt | sync with head.
|
1.94.4.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.95.2.2 |
| 02-Jun-2012 |
mrg | sync to latest -current.
|
1.95.2.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.96.2.2 |
| 18-Nov-2012 |
riz | Pull up following revision(s) (requested by tsutsui in ticket #646): sys/arch/x68k/dev/intio_dmac.c: revision 1.34 sys/arch/x68k/dev/fd.c: revision 1.100 sys/arch/x68k/dev/fd.c: revision 1.101 sys/arch/x68k/dev/fd.c: revision 1.102 sys/arch/x68k/dev/fd.c: revision 1.103 sys/arch/x68k/dev/fd.c: revision 1.104 sys/arch/x68k/dev/fd.c: revision 1.105 sys/arch/x68k/dev/fd.c: revision 1.98 sys/arch/x68k/dev/fd.c: revision 1.99 sys/arch/x68k/dev/fdreg.h: revision 1.5 sys/arch/x68k/dev/fdreg.h: revision 1.6 Explicitly specify a proper FDC data register address for HD63450 DMAC to avoid confusion. Previous one (fdc->sc_addr + fddata) wasn't a right address for the FDC's data register but one for the command register by accident, but FDC ignores A0 address input (connected to A1 of x68k address bus) during DMA xfer (i.e. when DACK is asserted) so it happened to work as expected on the real X680x0 hardware, but caused trouble on emulators. The inconsistency was found by Y.Sugahara during debugging XM6i emulator (and it will be fixed in the next release). FDC behavior during DMA is confirmed by uPD72068 hardware application note. XXX: There is no proper MI API to specify DMA address for DMA controller (like MC68450) to access devices mapped to memory space by bus_space(9). - use <sys/bus.h> rather than <machine/bus.h> - no need to include uvm_extern.h - include "ioconf.h" for struct cfdriver foo_cd KNF and cosmetics. No binary change. - check bus_space_map(9) return value - use BUS_SPACE_MAP_SHIFTED_ODD for clarify - define and use proper macro instead of magic To abort DMA in dmac_abort_xfer(), set DMAC_CCR_SAB (software abort) rather than DMAC_CCR_HLT (halt operation). DMAC_CCR_HLT doesn't abort DMA xfers but only suspends DMA ops (i.e. clearing HLT bit will resume DMA xfers), so previously DMAC error always occurs on the next DMA xfer ops after dmac_abort_xfer() is called. Also suppress DMAC error messages in dmac_error() if it's caused by software abort command because it can happen during normal audio play/record DMA ops in vs(4) driver. Before probing floppy drives, call NE7CMD_SENSEI and fdcresult() to drain possible pending FDC interrupts. Taken from sys/dev/isa/fd.c. Hopefully might fix occasional fd drive probe failure (but not confirmed). Terminate DMAC and call bus_dmamap_unload(9) properly in all FDC xfer error paths, as sys/dev/isa/fd.c does. Fixes unexpected DMAC errors (and possible VM panic due to un-unloaded dmamap) on the first floppy access after read/write errors. Add floppy format support. Mostly taken from sys/dev/isa/fd.c. Tested both fdNa (1232KB, 1024bytes/sector, 8sectors/track) and fdNc (1200KB, 512bytes/sector, 15sectors/track) format on X68030 using fdformat(1). Finally we can prepare NetBSD/x68k install floppies without Human68k (except actual initial bootstrap). KNF and space nits
|
1.96.2.1 |
| 09-May-2012 |
riz | Pull up following revision(s) (requested by tsutsui in ticket #236): sys/arch/x68k/x68k/machdep.c: revision 1.182 sys/arch/x68k/dev/fd.c: revision 1.97 Make x68k's floppy driver actually work with proper bounce buffer xfer ops on machines with extended high memories: - dev/fd.c: - add missing bus_dmamap_sync(9) POSTREAD/POSTWRITE ops - x68k/machdep.c: - update avail_end variable (which is used to check DMA'able memory range in intio.c) properly per probed extended memory regions The problem was found during debugging XM6i's FDC emulation by Y.Sugahara, isaki@, and me. Should be pulled up to netbsd-6.
|
1.101.2.4 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.101.2.3 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.101.2.2 |
| 23-Jun-2013 |
tls | resync from head
|
1.101.2.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.106.2.1 |
| 18-May-2014 |
rmind | sync with head
|
1.108.2.2 |
| 10-Aug-2014 |
tls | Rebase.
|
1.108.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.111.4.5 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.111.4.4 |
| 05-Feb-2017 |
skrll | Sync with HEAD
|
1.111.4.3 |
| 22-Sep-2015 |
skrll | Sync with HEAD
|
1.111.4.2 |
| 06-Jun-2015 |
skrll | Sync with HEAD
|
1.111.4.1 |
| 06-Apr-2015 |
skrll | Sync with HEAD
|
1.118.2.1 |
| 20-Mar-2017 |
pgoyette | Sync with HEAD
|
1.119.8.1 |
| 23-Sep-2017 |
snj | Pull up following revision(s) (requested by isaki in ticket #290): sys/arch/x68k/dev/dmacvar.h: revision 1.11-1.12 via patch sys/arch/x68k/dev/intio_dmac.c: revision 1.36-1.37 via patch sys/arch/x68k/dev/fd.c: revision 1.120 via patch sys/arch/x68k/dev/vs.c: revision 1.45-1.46 via patch Use dmac_prepare_xfer(). From Y.Sugahara. -- Allow dmac_alloc_channel() to specify DCR and OCR. FDC uses 'Cycle Steal Mode with Hold' but ADPCM should use 'Cycle Steal Mode without Hold' on x68k. From Y.Suhagara and it was found by XM6i. -- Fix a Continue Operation. Patch from Y.Sugahara.
|
1.120.4.2 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.120.4.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.120.2.1 |
| 06-Sep-2018 |
pgoyette | Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
|
1.123.10.1 |
| 21-Mar-2021 |
thorpej | Give config_found() the same variadic arguments treatment as config_search(). This commit only adds the CFARG_EOL sentinel to the existing config_found() calls. Conversion of config_found_sm_loc() and config_found_ia() call sites will be in subsequent commits.
|
1.124.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|