aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ppc
Commit message (Collapse)AuthorAgeFilesLines
* Enable build of ppc(4) module on i386 and amd64 architectures.Konstantin Belousov2006-07-191-0/+1
| | | | | | | | | | Add proper module interdependencies. Reviewed by: marcel Approved by: pjd (mentor) Notes: svn path=/stable/6/; revision=160503
* don't use C keyword register as CPP macro argument nameWarner Losh2005-04-121-2/+2
| | | | Notes: svn path=/head/; revision=144973
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-061-1/+0
| | | | Notes: svn path=/head/; revision=139749
* Add missing <sys/module.h> includesPoul-Henning Kamp2004-05-302-0/+2
| | | | Notes: svn path=/head/; revision=129879
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-171-4/+6
| | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
* Forgot an added file in the last commit.Doug Ambrisko2003-08-011-0/+49
| | | | Notes: svn path=/head/; revision=118294
* Add printer support to puc(4) driver.Doug Ambrisko2003-08-012-42/+118
| | | | | | | | | | | | | | - Move isa/ppc* to sys/dev/ppc (repo-copy) - Add an attachment method to ppc for puc - In puc we need to walk the chain of parents. Still to do, is to make ppc(4) & puc(4) work on other platforms. Testers wanted. PR: 38372 (in spirit done differently) Verified by: Make universe (if I messed up a platform please fix) Notes: svn path=/head/; revision=118292
* Use __FBSDID().David E. O'Brien2003-06-111-3/+3
| | | | Notes: svn path=/head/; revision=116181
* Remove break after return;Poul-Henning Kamp2003-05-311-7/+0
| | | | | | | Found by: FlexeLint Notes: svn path=/head/; revision=115545
* Fix some easy, global, lint warnings. In most cases, this meansMark Murray2003-04-301-1/+1
| | | | | | | | making some local variables static. In a couple of cases, this means removing an unused variable. Notes: svn path=/head/; revision=114293
* More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).Dag-Erling Smørgrav2003-03-021-3/+3
| | | | Notes: svn path=/head/; revision=111748
* Restore the original copyrightNicolas Souchu2002-03-231-0/+1
| | | | Notes: svn path=/head/; revision=93021
* Update to C99, s/__FUNCTION__/__func__/,David E. O'Brien2001-12-101-11/+11
| | | | | | | also don't use ANSI string concatenation. Notes: svn path=/head/; revision=87599
* Add ACPI attachments.Mike Smith2001-08-301-0/+1
| | | | Notes: svn path=/head/; revision=82555
* Convert inb/outb to bus_space.Nicolas Souchu2001-06-232-25/+34
| | | | | | | Submitted by: jcm@FreeBSD-uk.eu.org Notes: svn path=/head/; revision=78646
* Consider that the chipset may be in ECP mode (from BIOS settings)Nicolas Souchu2001-01-252-36/+37
| | | | | | | | | | even if mode PS/2 is forced with bootflags. As a matter of fact, chipsets needs some extra configuration for accessing PS/2 mode from ECP. The current patch is only relevant for generic chipsets since specific code is supposed to deal with this during detection. Notes: svn path=/head/; revision=71622
* Fix the PR. Getting a dma channel equal to 0 remains a problem though.Nicolas Souchu2000-12-191-1/+1
| | | | | | | PR: i386/22568 Notes: svn path=/head/; revision=70201
* Add support for the PC87303 chipset (found on Miata alphas) and addDoug Rabson2000-07-202-6/+47
| | | | | | | | | | support for relocating the port address if the isa hints specify a different address from the address the chipset currently has. Submitted by: Andrew M. Miklic <miklic@ibm.net> Notes: svn path=/head/; revision=63624
* Add smc37c935 chipset support and clean up the code which tries toDoug Rabson2000-07-182-32/+139
| | | | | | | | | | allocate a short port range in some alpha configurations. Submitted by: "Andrew M. Miklic" <miklic@udlkern.fc.hp.com>, Mark Abene <phiber@radicalmedia.com> Notes: svn path=/head/; revision=63403
* Only print the diagnostic about extended I/O ports if bootverbose is true.Doug Rabson2000-06-251-2/+4
| | | | Notes: svn path=/head/; revision=62061
* Port ppc driver to alpha.Doug Rabson2000-05-142-3/+27
| | | | | | | Submitted by: Andrew M. Miklic <miklic@ibm.net> Notes: svn path=/head/; revision=60544
* Enable PnP attachment for parallel port controllers.Garrett Wollman2000-04-221-6/+11
| | | | | | | PR: 17495 Notes: svn path=/head/; revision=59491
* Remove #include "ppc.h" and #if NPPC > 0 - this is always true as it isPeter Wemm2000-01-291-4/+0
| | | | | | | 'optional ppc' in conf/files* Notes: svn path=/head/; revision=56818
* * Don't use ivars to access resources, bus_set/get_resource is much better.Doug Rabson2000-01-251-10/+26
| | | | | | | * First approximation of making this work on alpha (not working yet). Notes: svn path=/head/; revision=56617
* Don't do device_set_desc() until after checking for PnP probes. OtherwisePeter Wemm2000-01-141-3/+4
| | | | | | | | | | | things like sound cards can get called "Parallel port". A note to the unwary; the isa-pnp devices in the system are probed like PCI - each device ID is passed to *all* isa probe routines to find the best match. If the driver is not prepared to deal with this, it must abort in this scenario or it will try and claim all PnP devices. Notes: svn path=/head/; revision=55948
* Port of ppbus standalone framework to the newbus system.Nicolas Souchu2000-01-142-318/+529
| | | | | | | | | | | | | | | | | | | | | | | | Note1: the correct interrupt level is invoked correctly for each driver. For this purpose, drivers request the bus before being able to call BUS_SETUP_INTR and BUS_TEARDOWN_INTR call is forced by the ppbus core when drivers release it. Thus, when BUS_SETUP_INTR is called at ppbus driver level, ppbus checks that the caller owns the bus and stores the interrupt handler cookie (in order to unregister it later). Printing is impossible while plip link is up is still TRUE. vpo (ZIP driver) and lpt are make in such a way that using the ZIP and printing concurrently is permitted is also TRUE. Note2: specific chipset detection is not done by default. PPC_PROBE_CHIPSET is now needed to force chipset detection. If set, the flags 0x40 still avoid detection at boot. Port of the pcf(4) driver to the newbus system (was previously directly connected to the rootbus and attached by a bogus pcf_isa_probe function). Notes: svn path=/head/; revision=55939
* $Id$ -> $FreeBSD$Peter Wemm1999-08-282-2/+2
| | | | Notes: svn path=/head/; revision=50477
* Return the port size from the probe.Peter Wemm1999-04-221-2/+3
| | | | | | | | "ppc0 at port 0x378 irq 7 drq 3 on isa0" becomes "ppc0 at port 0x378-0x37f irq 7 drq 3 on isa0" Notes: svn path=/head/; revision=45935
* More appropriate fix to the id_irq read during probeNicolas Souchu1999-02-141-3/+3
| | | | Notes: svn path=/head/; revision=44023
* The way the interrupt id was calculated was wrong and the lptNicolas Souchu1999-02-141-2/+2
| | | | | | | | | | driver was thinking irq was enabled although it wasn't. This case was particular to a no-interrupt static configuration. Reported by: "Norman C. Rice" <nrice@emu.sourcee.com> Notes: svn path=/head/; revision=44001
* Fix interrupt handling with DMA. Bit nFault was tested in the control reg.Nicolas Souchu1999-02-141-5/+10
| | | | | | | instead of the status reg. and check ECP mode before considering nFault. Notes: svn path=/head/; revision=43990
* Fix compile warnings about missing braces around static initialization of ↵Nicolas Souchu1999-01-311-3/+3
| | | | | | | unions. Notes: svn path=/head/; revision=43460
* Distinguish EPP address/data register. Add EPP address register access to ppi.Nicolas Souchu1999-01-302-18/+19
| | | | | | | | | | | Change microseq offsets. Previously, offsets of the program counter where added to the index of the current microinstruction. Make them rely on the index of the next executed microinstruction. Suggested by: Luigi Rizzo <luigi@labinfo.iet.unipi.it> Notes: svn path=/head/; revision=43433
* Fix broken low level ppb_rxxx() return type: char becomes u_char.Nicolas Souchu1999-01-102-18/+18
| | | | | | | | | Submitted by: Bruce Evans <bde@zeta.org.au> Some ppb bootup printfs simplified. Notes: svn path=/head/; revision=42482
* Major ppbus commit with:Nicolas Souchu1999-01-102-52/+486
| | | | | | | | | | | | | | | | | | | | | | + ECP parallel port chipset FIFO detection + DMA+FIFO parallel I/O handled as chipset specific + nlpt updated in order to use the above enhanced parallel I/O. Use 'lptcontrol -e' to use enhanced I/O + Various options documented in LINT + Full IEEE1284 NIBBLE and BYTE modes support. See ppbus(4) for an overview of the IEEE1284 standard + Detection of PnP parallel devices at boot + Read capability added to nlpt driver to get IEEE1284 compliant printer status with a simple 'cat /dev/lpt0' + IEEE1284 peripheral emulation added to BYTE mode. Two computers may dialog according to IEEE1284 signaling method. See PERIPH_1284 option and /sys/dev/ppbus/ppi.c All this code is supposed to provide basic functions for IEEE1284 programming. ppi.c and nlpt.c may act as examples. Notes: svn path=/head/; revision=42475
* Silence -Wtrigraph.Tim Vanderhoek1998-12-301-2/+2
| | | | | | | Submitted by: Bradley Dunn <bradley@dunn.org> (pr: kern/8817) Notes: svn path=/head/; revision=42155
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticArchie Cobbs1998-12-071-9/+3
| | | | | | | and local variables, goto labels, and functions declared but not defined. Notes: svn path=/head/; revision=41591
* pcf.c: timeout management addedNicolas Souchu1998-10-312-100/+219
| | | | | | | ppc.c: nsc code improved. Actually, a complete rewrite. Notes: svn path=/head/; revision=40784
* Initialize isa_devtab entries for interrupt handlers in individualBruce Evans1998-10-221-2/+5
| | | | | | | | | | device drivers, not in ioconf.c. Use a different hack in isa_device.h so that a new config(8) is not required yet. pc98 parts approved by: kato Notes: svn path=/head/; revision=40565
* - program counter was previously an index in the microsequence, now pcNicolas Souchu1998-09-201-26/+18
| | | | | | | is struct ppb_microseq* pointing directly into the microsequence Notes: svn path=/head/; revision=39521
* invalid printf call fixed -> compile time warning removedNicolas Souchu1998-09-131-2/+2
| | | | Notes: svn path=/head/; revision=39142
* ppbus enhanced to support ZIP+ : microseq improvedNicolas Souchu1998-09-132-27/+69
| | | | Notes: svn path=/head/; revision=39135
* printing with compatible mode fixed if ECP available + more verbose if ↵Nicolas Souchu1998-09-021-43/+163
| | | | | | | bootverbose set Notes: svn path=/head/; revision=38761
* Fixed printf format errors. Only one left in LINT on i386's.Bruce Evans1998-08-241-3/+2
| | | | Notes: svn path=/head/; revision=38505
* Major ppbus updates from the author.Mike Smith1998-08-032-190/+609
| | | | | | | | | | | | | | | | | | | | - ppbus now supports PLIP via the if_plip driver - ieee1284 infrastructure added, including parallel-port PnP - port microsequencer added, for scripting the sort of port I/O that is common with parallel devices without endless calls up and down through the driver structure. - improved bus ownership behaviour among the ppbus-using drivers. - improved I/O chipset feature detection The vpo driver is now implemented using the microsequencer, leading to some performance improvements as well as providing an extensive example of its use. Reviewed by: msmith Submitted by: Nicolas Souchu <Nicolas.Souchu@prism.uvsq.fr> Notes: svn path=/head/; revision=38061
* Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108.Dag-Erling Smørgrav1998-04-171-2/+2
| | | | Notes: svn path=/head/; revision=35256
* Removed unused #includes.Bruce Evans1997-09-011-8/+1
| | | | Notes: svn path=/head/; revision=28987
* Minor ppc_data structure tweak.Mike Smith1997-08-161-3/+3
| | | | | | | Submitted by: Nicolas Souchu <Nicolas.Souchu@prism.uvsq.fr> Notes: svn path=/head/; revision=28259
* ISA Parallel-Port Bus chipset driver.Mike Smith1997-08-142-0/+901
Submitted by: Nicolas Souchu <Nicolas.Souchu@prism.uvsq.fr> Notes: svn path=/head/; revision=28221