| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
Add support for SIIG x1 pci-e single parallel port card (JJ-E01211-S1)
PR: kern/182217
Notes:
svn path=/stable/9/; revision=262231
|
| |
|
|
|
|
|
|
|
|
|
| |
Move the device_delete_all_children() function from usb_util.c
to kern/subr_bus.c. Simplify this function so that it no longer
depends on malloc() to execute. Rename device_delete_all_children()
into device_delete_children(). Identify a few other places where
it makes sense to use device_delete_children().
Notes:
svn path=/stable/9/; revision=229118
|
| |
|
|
|
|
|
|
|
| |
PR: kern/152663
Submitted by: Jonathan Chen <jonc@chen.org.nz>
Approved by: rwatson (mentor)
Notes:
svn path=/head/; revision=218861
|
| |
|
|
|
|
|
|
|
| |
PR: kern/144713
Submitted by: gcooper
MFC after: 2 weeks
Notes:
svn path=/head/; revision=205534
|
| |
|
|
|
|
|
| |
card is a multifunction PCI and report itself as two logical devices.
Notes:
svn path=/head/; revision=188472
|
| |
|
|
| |
Notes:
svn path=/head/; revision=188173
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- To avoid having a bunch of locks that end up always getting acquired as
a group, give each ppc(4) device a mutex which it shares with all the
child devices including ppbus(4), lpt(4), plip(4), etc. This mutex
is then used for all the locking.
- Rework the interrupt handling stuff yet again. Now ppbus drivers setup
their interrupt handler during attach and tear it down during detach
like most other drivers. ppbus(4) only invokes the interrupt handler
of the device that currently owns the bus (if any) when an interrupt
occurs, however. Also, interrupt handlers in general now accept their
softc pointers as their argument rather than the device_t. Another
feature of the ppbus interrupt handlers is that they are called with
the parent ppc device's lock already held. This minimizes the number
of lock operations during an interrupt.
- Mark plip(4), lpt(4), pcfclock(4), ppi(4), vpo(4) MPSAFE.
- lpbb(4) uses the ppc lock instead of Giant.
- Other plip(4) changes:
- Add a mutex to protect the global tables in plip(4) and free them on
module unload.
- Add a detach routine.
- Split out the init/stop code from the ioctl routine into separate
functions.
- Other lpt(4) changes:
- Use device_printf().
- Use a dedicated callout for the lptout timer.
- Allocate the I/O buffers at attach and detach rather than during
open and close as this simplifies the locking at the cost of
1024+32 bytes when the driver is attached.
- Other ppi(4) changes:
- Use an sx lock to serialize open and close.
- Remove unused HADBUS flag.
- Add a detach routine.
- Use a malloc'd buffer for each read and write to avoid races with
concurrent read/write.
- Other pps(4) changes:
- Use a callout rather than a callout handle with timeout().
- Conform to the new ppbus requirements (regular mutex, non-filter
interrupt handler). pps(4) is probably going to have to become a
standalone driver that doesn't use ppbus(4) to satisfy it's
requirements for low latency as a result.
- Use an sx lock to serialize open and close.
- Other vpo(4) changes:
- Use the parent ppc device's lock to create the CAM sim instead of
Giant.
- Other ppc(4) changes:
- Fix ppc_isa's detach method to detach instead of calling attach.
Tested by: no one :-(
Notes:
svn path=/head/; revision=187576
|
| |
|
|
| |
Notes:
svn path=/head/; revision=185003
|
| |
|
|
| |
Notes:
svn path=/head/; revision=184176
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
other fixes:
- Add pointers back to device_t objects in softc structures instead
of storing the unit and using devclass_get_device().
- Add 'lpbb', 'pcf', 'pps', and 'vpo' child devices to every 'ppbus' device
instead of just the first one.
- Store softc pointers in si_drv1 of character devices instead of
pulling the unit number from the minor number and using
devclass_get_softc() and devclass_get_device().
- Store the LP_BYPASS flag in si_drv2 instead of encoding it in the minor
number.
- Destroy character devices for lpt(4) when detaching the device.
- Use bus_print_child_footer() instead of duplicating it in
ppbus_print_child() and fix ppbus_print_child()'s return value.
- Remove unused AVM ivar from ppbus.
- Don't store the 'mode' ivar in the ppbus ivars since we always fetch it
from the parent anyway.
- Try to detach all the child devices before deleting them in
ppbus_detach().
- Use pause() instead of a tsleep() on a dummy address when polling the
ppbus.
- Use if_printf() and device_printf() instead of explicit names with unit
numbers.
Silence on: current@
Notes:
svn path=/head/; revision=184130
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Retire IVARs for passing IRQs around. Instead, ppbus and ppc now allow
child devices to access the interrupt by via a rid 0 IRQ resource
using bus_alloc_resource_any().
- ppc creates its own interrupt event to manage the interrupt handlers of
child devices. ppc does not allow child devices to use filters. It
could allow this if needed, but none of the current drivers use them
and it adds a good bit of complication. It uses
intr_event_execute_handlers() to fire the child device interrupt handlers
from its threaded interrupt handler.
- Remove the ppbus_dummy_intr() hack. Now the ppc device always has an
interrupt handler registered and we no longer bounce all the way up to
nexus to manage adding/removing ppbus child interrupt handlers. Instead,
the child handlers are added and removed to the private interrupt event
in the ppc device.
Notes:
svn path=/head/; revision=183053
|
| |
|
|
| |
Notes:
svn path=/head/; revision=182441
|
| |
|
|
|
|
|
| |
from softc.
Notes:
svn path=/head/; revision=182016
|
| |
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=182015
|
| |
|
|
|
|
|
|
| |
bus_release_resource(). This is needed for pc98 by upcoming nexus related
change.
Notes:
svn path=/head/; revision=167753
|
| |
|
|
|
|
|
| |
o Fix a bit the indentation.
Notes:
svn path=/head/; revision=167264
|
| |
|
|
| |
Notes:
svn path=/head/; revision=166933
|
| |
|
|
|
|
|
|
|
| |
triggers a KASSERT) or local variables. In the case of kern_ndis, the
tsleep() actually used a common sleep address (curproc) making it
susceptible to a premature wakeup.
Notes:
svn path=/head/; revision=166909
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
bus_setup_intr()
o add an int return code to all fast handlers
o retire INTR_FAST/IH_FAST
For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current
Reviewed by: many
Approved by: re@
Notes:
svn path=/head/; revision=166901
|
| |
|
|
| |
Notes:
svn path=/head/; revision=158471
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Properly use rman(9) to manage resources. This eliminates the
need to puc-specific hacks to rman. It also allows devinfo(8)
to be used to find out the specific assignment of resources to
serial/parallel ports.
o Compress the PCI device "database" by optimizing for the common
case and to use a procedural interface to handle the exceptions.
The procedural interface also generalizes the need to setup the
hardware (program chipsets, program clock frequencies).
o Eliminate the need for PUC_FASTINTR. Serdev devices are fast by
default and non-serdev devices are handled by the bus.
o Use the serdev I/F to collect interrupt status and to handle
interrupts across ports in priority order.
o Sync the PCI device configuration to include devices found in
NetBSD and not yet merged to FreeBSD.
o Add support for Quatech 2, 4 and 8 port UARTs.
o Add support for a couple dozen Timedia serial cards as found
in Linux.
Notes:
svn path=/head/; revision=158124
|
| |
|
|
|
|
|
|
| |
o Whitespace fixes
o Non-K&R functions
Notes:
svn path=/head/; revision=158057
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
end for isa(4).
o Add a seperate bus frontend for acpi(4) and allow ISA DMA for
it when ISA is configured in the kernel. This allows acpi(4)
attachments in non-ISA configurations, as is possible for ia64.
o Add a seperate bus frontend for pci(4) and detect known single
port parallel cards.
o Merge PC98 specific changes under pc98/cbus into the MI driver.
The changes are minor enough for conditional compilation and
in this form invites better abstraction.
o Have ppc(4) usabled on all platforms, now that ISA specifics
are untangled enough.
Notes:
svn path=/head/; revision=158005
|
| |
|
|
|
|
|
|
|
|
|
| |
Additional detach implementaions (or maybe improvement) for other
deivce drivers is required.
Reviewed by: njl, imp
MFC after: 1 week
Notes:
svn path=/head/; revision=157774
|
| |
|
|
| |
Notes:
svn path=/head/; revision=155927
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
interrupt handlers rather than BUS_SETUP_INTR() and BUS_TEARDOWN_INTR().
Uses of the BUS_*() versions in the implementation of foo_intr methods
in bus drivers were not changed. Mostly this just means that some
drivers might start printing diagnostic messages like [FAST] when
appropriate as well as honoring mpsafenet=0.
- Fix two more of the ppbus drivers' identify routines to function
correctly in the mythical case of a machine with more than one ppbus.
Notes:
svn path=/head/; revision=155921
|
| |
|
|
|
|
|
| |
loaded dynamically.
Notes:
svn path=/head/; revision=153610
|
| |
|
|
| |
Notes:
svn path=/head/; revision=153072
|
| |
|
|
| |
Notes:
svn path=/head/; revision=144973
|
| |
|
|
| |
Notes:
svn path=/head/; revision=139749
|
| |
|
|
| |
Notes:
svn path=/head/; revision=129879
|
| |
|
|
|
|
|
|
| |
Submitted by: Mark Santcroos <marks@ripe.net>
Reviewed by: imp, dfr, bde
Notes:
svn path=/head/; revision=127135
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118294
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
|
| |
Notes:
svn path=/head/; revision=116181
|
| |
|
|
|
|
|
| |
Found by: FlexeLint
Notes:
svn path=/head/; revision=115545
|
| |
|
|
|
|
|
|
| |
making some local variables static. In a couple of cases, this means
removing an unused variable.
Notes:
svn path=/head/; revision=114293
|
| |
|
|
| |
Notes:
svn path=/head/; revision=111748
|
| |
|
|
| |
Notes:
svn path=/head/; revision=93021
|
| |
|
|
|
|
|
| |
also don't use ANSI string concatenation.
Notes:
svn path=/head/; revision=87599
|
| |
|
|
| |
Notes:
svn path=/head/; revision=82555
|
| |
|
|
|
|
|
| |
Submitted by: jcm@FreeBSD-uk.eu.org
Notes:
svn path=/head/; revision=78646
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
PR: i386/22568
Notes:
svn path=/head/; revision=70201
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Notes:
svn path=/head/; revision=62061
|
| |
|
|
|
|
|
| |
Submitted by: Andrew M. Miklic <miklic@ibm.net>
Notes:
svn path=/head/; revision=60544
|
| |
|
|
|
|
|
| |
PR: 17495
Notes:
svn path=/head/; revision=59491
|
| |
|
|
|
|
|
| |
'optional ppc' in conf/files*
Notes:
svn path=/head/; revision=56818
|