History log of /src/sys/arch/mvme68k/dev/zs.c |
Revision | | Date | Author | Comments |
1.46 |
| 18-Jan-2024 |
thorpej | Don't put the MVME1xx model defines into IDENT, make them defflag options and put them in opt_mvmeconf.h. Make these options depend on the appropriate M680x0 option (MVME147 -> M68030, MVME16[27] -> M68040, MVME17[27] -> M68060) so that the CPU option appears correctly in opt_m68k_arch.h.
|
1.45 |
| 11-Sep-2021 |
andvar | Add missing double p and d for stopped and overriden accordingly. Fix few more typos along the way, mainly in copy-pasted comments.
|
1.44 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.43 |
| 24-Apr-2021 |
thorpej | branches: 1.43.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.42 |
| 11-Apr-2009 |
scw | branches: 1.42.78; Invoke zs_lock_init() _after_ copying console state to avoid a later lock-related panic.
|
1.41 |
| 13-Jun-2008 |
cegger | branches: 1.41.4; 1.41.10; use device_lookup_private to get softc
|
1.40 |
| 28-Apr-2008 |
martin | branches: 1.40.2; 1.40.4; Remove clause 3 and 4 from TNF licenses
|
1.39 |
| 29-Mar-2008 |
tsutsui | branches: 1.39.2; 1.39.4; Split softc and device_t for zsc(4) and its children.
XXX we should restructure MI APIs and make it really machine independent.
|
1.38 |
| 12-Jan-2008 |
tsutsui | branches: 1.38.6; Misc cleanup: - KNF, ANSIfy, remove __P() - use __func__ to print function names - use __arraycount() - include "ioconf.h" for struct cfdriver - u_intNN_t -> uintNN_t - wrap long lines etc.
|
1.37 |
| 03-Dec-2007 |
ad | branches: 1.37.6; Interrupt handling changes, in discussion since February:
- Reduce available SPL levels for hardware devices to none, vm, sched, high. - Acquire kernel_lock only for interrupts at IPL_VM. - Implement threaded soft interrupts.
|
1.36 |
| 09-Nov-2007 |
ad | Call zs_lock_init() to set up the chanstate's lock.
|
1.35 |
| 28-Mar-2006 |
thorpej | branches: 1.35.18; 1.35.36; 1.35.38; 1.35.42; 1.35.44; Use device_unit().
|
1.34 |
| 11-Dec-2005 |
christos | branches: 1.34.4; 1.34.6; 1.34.8; 1.34.10; 1.34.12; merge ktrace-lwp.
|
1.33 |
| 04-Dec-2003 |
keihan | branches: 1.33.16; NetBSD.ORG -> NetBSD.org
Now all "NetBSD.ORG" are gone from src/sys.
|
1.32 |
| 15-Jul-2003 |
lukem | __KERNEL_RCSID()
|
1.31 |
| 28-Jan-2003 |
pk | branches: 1.31.2; Provide locking required by the interrupt handlers running at IPL_SERIAL.
|
1.30 |
| 01-Jan-2003 |
thorpej | Use aprint_normal() for cfprint routines.
|
1.29 |
| 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.28 |
| 07-Jul-2001 |
scw | branches: 1.28.2; 1.28.8; 1.28.16; bzero -> memset bcopy -> memcpy bcmp -> memcmp
|
1.27 |
| 31-May-2001 |
scw | Deprecate intrcnt/intrnames in favour of the generic evcnt(9) interface.
|
1.26 |
| 21-Nov-2000 |
scw | branches: 1.26.2; Call zs_set_speed() to calculate the initial timing constants.
|
1.25 |
| 20-Nov-2000 |
scw | Add support for the m68060-based machines: MVME-172 and MVME-177. CPU support taken from a combination of NetBSD/amiga and NetBSD/x68k.
At this time, MVME-172 works but MVME-177 is untested. Since the '177 is otherwise identical to the MVME-167, this should *just work*.
|
1.24 |
| 18-Nov-2000 |
scw | Fix a braino in the last commit.
|
1.23 |
| 18-Nov-2000 |
scw | Allow a degree of tolerance when calculating the baudrate timing constant.
|
1.22 |
| 06-Sep-2000 |
scw | Add preliminary support for the MVME162-LX 200/300 series of boards.
Currently, the major onboard devices are supported (disk, network, rs232 and VMEbus). However, work is still need to support the remaining devices (eg. IndustryPack sites).
These boards are available with a dazzling array of build options. At this time, the following options are *required*:
o Real floating point hardware (the 68LC040 model isn't tested), o The VMEchip2 must be present, o If offboard VMEbus RAM is not present, at least 8MB of onboard RAM is required. o Even if offboard VMEbus RAM *is* present, at least 4MB of onboard RAM is required. (Boards with 1 or 2MB onboard RAM *can* be supported with offboard RAM, but not without some funky values in the VMEbus Master mapping registers.)
There is no support for boards other than those in the -LX 200/300 series.
|
1.21 |
| 21-Jul-2000 |
scw | Make this compile again.
|
1.20 |
| 20-Jul-2000 |
scw | Implement generic soft interrupts for mvme68k. Based on Jason Thorpe's Alpha implementation.
|
1.19 |
| 18-Mar-2000 |
scw | branches: 1.19.4; Merge 'scw_mvme68k_bus_space' branch with the trunk. These changes add support for:
o The MI VMEbus framework on both MVME147 and MVME167. o Enhancements to the existing MD bus_space(9) implementation. o Most of the bus_dma(9) API.
|
1.18 |
| 27-Mar-1999 |
wrstuden | branches: 1.18.8; 1.18.16; Add pps support. Only enable pps if CLOCAL & !MDMBUF.
|
1.17 |
| 11-Feb-1999 |
mycroft | Minor cleanup. Make the initializer for BAUDLO depend on PCLK directly; it was incorrect on some ports where PCLK is not 4.9152MHz. XXX Is the default value actually used?
|
1.16 |
| 03-Feb-1999 |
mycroft | Don't set DCD_IE in the frontends. KGDB doesn't even use DCD, and the tty frontends get it from zsparam() anyway.
|
1.15 |
| 22-Aug-1998 |
scw | vm_offset -> [vp]addr_t and vm_size_t -> [vp]size_t While I'm here, expunge use of 'register' storage class.
|
1.14 |
| 12-Jan-1998 |
thorpej | Update for changes to config.
|
1.13 |
| 02-Nov-1997 |
mycroft | Set rr0_dcd. Don't set DCD_IE and CTS_IE here; let the MI code do it. Handle MDMBUF.
|
1.12 |
| 05-Feb-1997 |
gwr | branches: 1.12.12; Apply that fix from Bill Studenmund that keeps us from ignoring DCD. Also fix the copyright (s/REGENTS/FOUNDATION/).
|
1.11 |
| 17-Dec-1996 |
gwr | Adapt to the new version of dev/ic/z8530*
|
1.10 |
| 09-Dec-1996 |
thorpej | Copyright assigned to The NetBSD Foundation.
|
1.9 |
| 13-Oct-1996 |
christos | backout previous kprintf change
|
1.8 |
| 10-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.7 |
| 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.6 |
| 26-Aug-1996 |
thorpej | Update for structure member name changes made in the MI code.
|
1.5 |
| 26-May-1996 |
chuck | fix cngetc() typeo.
|
1.4 |
| 26-Apr-1996 |
chuck | branches: 1.4.4; - zs: switch to MI driver - clock, le, pcc, wdsc, zs: convert to new autoconfig scheme - vme: add vme support
Contributed by: Jason R. Thorpe <thorpej@og.org>
|
1.3 |
| 19-Mar-1996 |
thorpej | Fix typo.
|
1.2 |
| 17-Mar-1996 |
thorpej | New device attachment scheme:
- split softc size and match/attach out from cfdriver into a new struct cfattach.
- new "attach" directive for files.*. May specify the name of the cfattach structure, so that devices may be easily attached to parents with different autoconfiguration semantics.
|
1.1 |
| 25-Jul-1995 |
chuck | branches: 1.1.1; Initial revision
|
1.1.1.1 |
| 25-Jul-1995 |
chuck | mvme68k port -- for the motorola vme147 m68030 card
|
1.4.4.2 |
| 06-Jun-1996 |
chuck | s/cs_pclk_div16/cs_brg_clk/ as per gwr so we can compile again
|
1.4.4.1 |
| 27-May-1996 |
chuck | fix cngetc bug
|
1.12.12.1 |
| 04-Nov-1997 |
mellon | Pull rev 1.13 up from trunk (mycrosoft)
|
1.18.16.2 |
| 18-Mar-2000 |
scw | MI VMEbus glue more or less complete. Kernels now compiled with -Wall, etc. (lots of fixes needed for this) All MD drivers now bus_spaced/bus_dma'd. The two SCSI drivers should be replaced with bus_spaced MI versions at some point.
|
1.18.16.1 |
| 14-Mar-2000 |
scw | Get rid of PCC{,TWO}_VADDR(), and some general tidying up.
|
1.18.8.2 |
| 22-Nov-2000 |
bouyer | Sync with HEAD.
|
1.18.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.19.4.2 |
| 17-Oct-2000 |
scw | Pullup 1.21 - 1.22 (approved by tv) Bring support for MVME162 into the 1.5 branch.
|
1.19.4.1 |
| 22-Jul-2000 |
scw | Pullup from trunk: 1.20 and 1.21 Approved by: thorpej
Implement generic soft interrupts for mvme68k.
|
1.26.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.28.16.1 |
| 19-May-2002 |
gehenna | Remove hard-coded major.
|
1.28.8.3 |
| 03-Jan-2003 |
thorpej | Sync with HEAD.
|
1.28.8.2 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.28.8.1 |
| 07-Jul-2001 |
nathanw | file zs.c was added on branch nathanw_sa on 2002-09-17 21:16:03 +0000
|
1.28.2.1 |
| 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.31.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.31.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.31.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.33.16.4 |
| 21-Jan-2008 |
yamt | sync with head
|
1.33.16.3 |
| 07-Dec-2007 |
yamt | sync with head
|
1.33.16.2 |
| 15-Nov-2007 |
yamt | sync with head.
|
1.33.16.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.34.12.1 |
| 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.34.10.1 |
| 19-Apr-2006 |
elad | sync with head - hopefully this will work
|
1.34.8.1 |
| 01-Apr-2006 |
yamt | sync with head.
|
1.34.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.34.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.35.44.3 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.35.44.2 |
| 08-Dec-2007 |
mjf | Sync with HEAD.
|
1.35.44.1 |
| 19-Nov-2007 |
mjf | Sync with HEAD.
|
1.35.42.1 |
| 13-Nov-2007 |
bouyer | Sync with HEAD
|
1.35.38.2 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.35.38.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.35.36.2 |
| 09-Dec-2007 |
jmcneill | Sync with HEAD.
|
1.35.36.1 |
| 11-Nov-2007 |
joerg | Sync with HEAD.
|
1.35.18.1 |
| 03-Dec-2007 |
ad | Sync with HEAD.
|
1.37.6.1 |
| 19-Jan-2008 |
bouyer | Sync with HEAD
|
1.38.6.3 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.38.6.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.38.6.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.39.4.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.39.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.39.2.2 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.39.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.40.4.1 |
| 18-Jun-2008 |
simonb | Sync with head.
|
1.40.2.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.41.10.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.41.4.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.42.78.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.43.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|