History log of /src/sys/arch/macppc/dev/zs.c |
Revision | | Date | Author | Comments |
1.59 |
| 24-Sep-2023 |
andvar | pass NULL to the second dbdma_alloc() expected argement. it was not adjusted after it acquired one 7 years ago.
fixes ZS_TXDMA enabled build for macppc.
|
1.58 |
| 23-Sep-2023 |
andvar | some whitespace cleanup for debug printf calls.
|
1.57 |
| 23-Sep-2023 |
andvar | change zsprintf to printf. It was defined as printf in include/z8530var.h up to rev 1.4, then removed with conversion to MI 8530 SCC driver back in 1997.
Fixes build with ZSMACDEBUG option enabled for mac68k and macppc.
|
1.56 |
| 16-Feb-2022 |
riastradh | powerpc: Sprinkle "memory" clobbers on eieio and nearby asm blocks.
Otherwise the compiler may reorder these around loads and stores, which mostly defeats the purpose. `asm volatile' just ensures the instruction isn't _deleted_; it may still move around.
|
1.55 |
| 13-Feb-2022 |
martin | PR port-macppc/56091: on G5 macs we currently can not easily make early serial console work, so keep the OF based "failsafe" console but note that we would like to switch over. Once zs attaches, use the new device mapping and do a belated init of the zs console globals, and then switch over to real zs based serial console.
|
1.54 |
| 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.53 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.52 |
| 24-Apr-2021 |
thorpej | branches: 1.52.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.51 |
| 05-Mar-2021 |
rin | branches: 1.51.2; Convert to intr_establish_xname().
|
1.50 |
| 30-Jun-2011 |
matt | branches: 1.50.66; Modify mapiodev to take a third argument indicating whether the space should be prefetchable (true) or not (false).
|
1.49 |
| 27-Oct-2009 |
snj | Drop 3rd and 4th clauses. Approved by gwr@ and wrstuden@ (copyright holders).
|
1.48 |
| 07-Dec-2008 |
tsutsui | Fix attach messages. (extra colons, misplaced newline etc.)
|
1.47 |
| 13-Jun-2008 |
cegger | branches: 1.47.2; 1.47.4; 1.47.6; use device_lookup_private to get softc
|
1.46 |
| 29-Mar-2008 |
tsutsui | branches: 1.46.2; 1.46.4; 1.46.6; 1.46.8; Split softc and device_t for zsc(4) and its children.
XXX we should restructure MI APIs and make it really machine independent.
|
1.45 |
| 19-Nov-2007 |
ad | branches: 1.45.14; Use the softint API.
|
1.44 |
| 09-Nov-2007 |
ad | Call zs_lock_init() to set up the chanstate's lock.
|
1.43 |
| 17-Oct-2007 |
garbled | branches: 1.43.2; 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.42 |
| 04-Mar-2007 |
christos | branches: 1.42.2; 1.42.10; 1.42.18; 1.42.20; 1.42.22; 1.42.24; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.41 |
| 24-Nov-2006 |
wiz | branches: 1.41.4; s/independant/independent/, from Zafer.
|
1.40 |
| 02-Nov-2006 |
tsutsui | Remove a function declaration of zssoft() which was inside #ifndef __HAVE_GENERIC_SOFT_INTERRUPTS.
|
1.39 |
| 02-Nov-2006 |
tsutsui | Pass zsc_softc to zshard() directly rather than searching it in zshard().
Checking all zsc units in zshard() is efficient only on ports which share one interrupt among all zsc units, like sparc or sun3. On such ports, zshard() is established as a handler only once.
XXX1: more other MD zs drivers should be fixed similarly. XXX2: zsc on macppc has independent interrupts for channel A and B, but MI z8530sc can't handle such configuration.
|
1.38 |
| 02-Nov-2006 |
tsutsui | macppc always defines __HAVE_GENERIC_SOFT_INTERRUPTS, so remove #ifdef/#ifndefs against it.
|
1.37 |
| 15-Aug-2006 |
macallan | branches: 1.37.2; 1.37.4; back out previous commit since it breaks console output when not using a serial console
|
1.36 |
| 05-Aug-2006 |
sanjayl | branches: 1.36.2; 1st cut of Powermac G5 support (uses bridge mode).
|
1.35 |
| 24-Dec-2005 |
perry | branches: 1.35.4; 1.35.8; Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
|
1.34 |
| 11-Dec-2005 |
christos | merge ktrace-lwp.
|
1.33 |
| 03-Jun-2005 |
matt | branches: 1.33.2; cleanup const/volatile/shadowing
|
1.32 |
| 24-Jan-2005 |
matt | Initialize zsconschannel to -1 so that it can't matched unless zscninit is explicitly called to set it up.
|
1.31 |
| 10-Jan-2005 |
chs | branches: 1.31.2; use a global variable to ensure that only one instance is configured rather than requiring that its unit number be zero. simplify by not pretending that powermacs can have more than 1 zsc.
|
1.30 |
| 10-Jan-2005 |
chs | de-__P, remove register, ansify.
|
1.29 |
| 24-Mar-2004 |
matt | Add latent generic soft interrupt support.
|
1.28 |
| 04-Dec-2003 |
keihan | netbsd.org -> NetBSD.org
All "netbsd.org" is now gone from src/sys/arch.
|
1.27 |
| 15-Jul-2003 |
lukem | __KERNEL_RCSID()
|
1.26 |
| 15-Feb-2003 |
tsutsui | branches: 1.26.2; Add prototypes for ZS_TXDMA functions. XXX Maybe we should have DMA hooks in MI z8530tty.
|
1.25 |
| 28-Jan-2003 |
pk | Provide locking required by the interrupt handlers running at IPL_SERIAL.
|
1.24 |
| 01-Jan-2003 |
thorpej | Use aprint_normal() for cfprint routines.
|
1.23 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.22 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.21 |
| 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.20 |
| 17-Mar-2002 |
atatat | branches: 1.20.4; Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for indicating an unhandled "command". ERESTART is -1, which can lead to confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been placed at -4. No ioctl code should now return -1 anywhere. The ioctl() system call is now properly restartable.
|
1.19 |
| 06-Jan-2002 |
dbj | add support for kgdb over zs
|
1.18 |
| 22-Jul-2001 |
wiz | branches: 1.18.6; bcopy -> memcpy, bzero -> memset, bcmp -> memcmp. Reviewed by Matt Thomas, ok'd by Tsubai Masanari.
|
1.17 |
| 19-Jun-2001 |
wiz | branches: 1.17.2; `existent', not `existant'
|
1.16 |
| 08-Jun-2001 |
matt | Make macppc compile by default with -Wall -Wmissing-prototype in addition to its currently enabled warnings. For the lack of a better place, most global function prototype wound up in <machine/autoconf.h> unless there was a better place for them. ofb_* structs renamed to offb_* to avoid conflict with ofb_softc in <dev/ofw/openfirm.h>
|
1.15 |
| 07-Jun-2000 |
tsubai | branches: 1.15.4; * Access hardware directly in zscn* instead of calling OF. * Clean up.
|
1.14 |
| 06-Mar-2000 |
thorpej | branches: 1.14.2; - Implement cnbell() -- ring the console bell. The cn_bell entrypoint is optional. - Add cn_bell to statically allocated consdevs as appropriate.
|
1.13 |
| 27-Feb-2000 |
tsubai | Don't use hardcoded speed value when this is a console. Instead, read from zs. (because OF-3.x uses 57600 bps)
|
1.12 |
| 23-Mar-1999 |
wrstuden | branches: 1.12.8; Oops. macppc doesn't use PCLK as a baud rate source.
|
1.11 |
| 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.10 |
| 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.9 |
| 29-Dec-1998 |
tsubai | Fix a bug of last change.
|
1.8 |
| 28-Dec-1998 |
tsubai | Use "interrupt" property if "AAPL,interrupt" is not found.
|
1.7 |
| 09-Sep-1998 |
wrstuden | Turn on support for 115,200 and 230,400 baud. Should work, but might generate lots of interupts (one per char or so) if we don't have DMA set up.
|
1.6 |
| 26-Aug-1998 |
tsubai | Back out previous change.
|
1.5 |
| 16-Aug-1998 |
tsubai | Enable 115200 and (untested)230400 bps.
|
1.4 |
| 13-Jul-1998 |
tsubai | Add support for G3 Mac.
|
1.3 |
| 04-Jul-1998 |
jonathan | defopt DDB.
|
1.2 |
| 02-Jul-1998 |
tsubai | Console support.
|
1.1 |
| 15-May-1998 |
tsubai | Initial import of macppc port.
|
1.12.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.14.2.1 |
| 22-Jun-2000 |
minoura | Sync w/ netbsd-1-5-base.
|
1.15.4.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.17.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.17.2.3 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.17.2.2 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.17.2.1 |
| 03-Aug-2001 |
lukem | update to -current
|
1.18.6.7 |
| 03-Jan-2003 |
thorpej | Sync with HEAD.
|
1.18.6.6 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.18.6.5 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.18.6.4 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.18.6.3 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.18.6.2 |
| 11-Jan-2002 |
nathanw | More catchup.
|
1.18.6.1 |
| 22-Jul-2001 |
nathanw | file zs.c was added on branch nathanw_sa on 2002-01-11 23:38:36 +0000
|
1.20.4.1 |
| 19-May-2002 |
gehenna | Replace the access to devsw table and the hard-coded majors with devsw API.
|
1.26.2.6 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.26.2.5 |
| 04-Feb-2005 |
skrll | Sync with HEAD.
|
1.26.2.4 |
| 17-Jan-2005 |
skrll | Sync with HEAD.
|
1.26.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.26.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.26.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.31.2.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.33.2.6 |
| 07-Dec-2007 |
yamt | sync with head
|
1.33.2.5 |
| 15-Nov-2007 |
yamt | sync with head.
|
1.33.2.4 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.33.2.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.33.2.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.33.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.35.8.2 |
| 03-Sep-2006 |
yamt | sync with head.
|
1.35.8.1 |
| 11-Aug-2006 |
yamt | sync with head
|
1.35.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.36.2.1 |
| 21-Aug-2006 |
tron | Pull up following revision(s) (requested by macallan in ticket #31): sys/arch/macppc/dev/zs.c: revision 1.37 back out previous commit since it breaks console output when not using a serial console
|
1.37.4.1 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.37.2.2 |
| 12-Jan-2007 |
ad | Sync with head.
|
1.37.2.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.41.4.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.42.24.3 |
| 21-Nov-2007 |
bouyer | Sync with HEAD
|
1.42.24.2 |
| 13-Nov-2007 |
bouyer | Sync with HEAD
|
1.42.24.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.42.22.1 |
| 18-Oct-2007 |
yamt | sync with head.
|
1.42.20.2 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.42.20.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.42.18.3 |
| 21-Nov-2007 |
joerg | Sync with HEAD.
|
1.42.18.2 |
| 11-Nov-2007 |
joerg | Sync with HEAD.
|
1.42.18.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.42.10.1 |
| 11-May-2007 |
macallan | request the correct interrupt type in a couple drivers - necessary since these days we actually do something with the type argument
|
1.42.2.2 |
| 03-Dec-2007 |
ad | Sync with HEAD.
|
1.42.2.1 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.43.2.2 |
| 08-Dec-2007 |
mjf | Sync with HEAD.
|
1.43.2.1 |
| 19-Nov-2007 |
mjf | Sync with HEAD.
|
1.45.14.3 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.45.14.2 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.45.14.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.46.8.1 |
| 18-Jun-2008 |
simonb | Sync with head.
|
1.46.6.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.46.4.2 |
| 11-Mar-2010 |
yamt | sync with head
|
1.46.4.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.46.2.1 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.47.6.1 |
| 13-Dec-2008 |
bouyer | Pull up following revision(s) (requested by tsutsui in ticket #182): sys/arch/macppc/dev/cuda.c: revision 1.9 sys/arch/macppc/macppc/memory.c: revision 1.2 sys/arch/macppc/dev/zs.c: revision 1.48 Fix attach messages. (extra colons, misplaced newline etc.)
|
1.47.4.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.47.2.1 |
| 13-Dec-2008 |
haad | Update haad-dm branch to haad-dm-base2.
|
1.50.66.1 |
| 03-Apr-2021 |
thorpej | Sync with HEAD.
|
1.51.2.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.52.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|