Commit Graph

1555 Commits

Author SHA1 Message Date
hauke
f5ede5dc2e Added driver for the Creative Systems Inc. Hurdler CPI parallel printer card.
Timecounter support for the Z8536 counters A + B is not complete, yet.

Reviewed by Martin Husemann.
2008-05-22 19:49:43 +00:00
macallan
e369394198 sprinkle static 2008-05-16 03:49:54 +00:00
macallan
0a9283467c struct device * -> device_t 2008-05-16 03:11:09 +00:00
macallan
b6c6870c6d struct device * -> device_t 2008-05-16 02:41:50 +00:00
macallan
f147f68f57 listen to PMF volume control events
With this volume vontrol via keyboard works on my iBook G4.
2008-05-15 20:11:00 +00:00
macallan
7d61890be8 struct device -> device_t 2008-05-15 19:47:09 +00:00
macallan
757fd24b0c nuke license clause 3 2008-05-08 01:37:04 +00:00
macallan
e24aaf48e7 report chip revision 2008-05-08 01:36:03 +00:00
macallan
343b964931 magic number reduction
from Izumi Tsutsui
2008-05-08 01:27:43 +00:00
macallan
5572494305 Make the priority ordering code actually work.
Thanks to Izumi Tsutsui for bugging me repeatedly about the problem.
2008-05-07 00:39:12 +00:00
xtraeme
07c2a78bc8 device_t/softc split for adt7467c(4) and adm1030, and other related
cosmetic changes.
2008-05-04 14:45:01 +00:00
martin
3028e483e4 Convert to new 2 clause license 2008-04-29 06:53:00 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
tsutsui
78a1d236b6 Split device_t/softc for MI ncr53c9x and some related devices,
with various cleanup.
2008-04-13 04:55:52 +00:00
macallan
3b8eb423c6 actually update the 'battery present' sensor. Doh. 2008-03-30 18:19:53 +00:00
macallan
b996b42f44 free & unmap DMA memory and registers on detach()
Now removing and re-attaching a mediabay works again.
2008-03-30 18:16:25 +00:00
macallan
a78054eebc don't splhigh() in the interrupt handler, instead spltty() in adb_poll() 2008-03-30 17:57:29 +00:00
tsutsui
02cb47cab2 Split softc and device_t for zsc(4) and its children.
XXX we should restructure MI APIs and make it really machine independent.
2008-03-29 19:15:34 +00:00
cube
7aa6248cdf Split device_t and softc for ATA devices, as well as wd(4). Other
cosmetic changes where appropriate.
2008-03-18 20:46:35 +00:00
cube
607ead0ef4 Split device_t and softc for all com(4) devices (well, everything that
uses a com_softc backend).  Use proper types and ansify where appropriate.
2008-03-14 15:09:09 +00:00
rmind
c6186face4 Welcome to 4.99.55:
- Add a lot of missing selinit() and seldestroy() calls.

- Merge selwakeup() and selnotify() calls into a single selnotify().

- Add an additional 'events' argument to selnotify() call.  It will
  indicate which event (POLL_IN, POLL_OUT, etc) happen.  If unknown,
  zero may be used.

Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>
2008-03-01 14:16:49 +00:00
joerg
ab9987d535 Missing assym.h dependency. 2008-03-01 13:59:26 +00:00
macallan
12dbe7fb57 move PCI_MAGIC_IO_RANGE to a header that's actually exported to userland 2008-02-28 00:18:08 +00:00
macallan
3195ef8f6f add a #define to select at which offset display drivers' mmap() methods
return the resp. IO range so X can access stuff lie VGA registers
2008-02-27 23:56:58 +00:00
matt
652f27646d Convert to prototypes, de'__P, use device_private, switch to aprint_*,
make things static, and some minor constification.
2008-02-25 19:22:39 +00:00
drochner
bb33f35f20 Since files.wscons et al. are included by ~all ports anyway, include
them in the mi "files" file, and remove include statements from md files.
These shouldn't pull in additional kernel code when not in use, so it
shouldn't do any harm except a risk of namespace collisions which
should be easy to fix.
2008-02-20 21:43:33 +00:00
garbled
cec80d7eae Because macppc shares code with ofppc, it needs oeacpufeat defined.
Other OEA ports do not yet make use of this code, so they don't require it.
2008-02-05 18:14:02 +00:00
joerg
3615cf7715 Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.
2008-01-20 18:09:03 +00:00
dyoung
b480b62270 Make many ethernet drivers share the common code for MII media
handling, ether_mediastatus() and ether_mediachange().  Check for
a non-ENXIO error return from mii_mediachg().  (ENXIO indicates
that a PHY is suspended.)

This patch shrinks the source code size by 979 lines.  There was
a 5100-byte savings on the NetBSD/i386 kernel configuration, ALL.

I have made a few miscellaneous changes, too:

gem(4): use LIST_EMPTY(), LIST_FOREACH().
mtd(4): handle media ioctls, for a change!
axe(4): do not track link status in sc->axe_link any longer
nfe(4), aue(4), axe(4), udav(4), url(4): do not reset all PHYs
        on a change of media

Except for the change to mtd(4), no functional changes are intended.

XXX This patch affects more architectures than I can feasibly
XXX compile and run.  I have compiled macppc, sparc64, i386.  I
XXX have run the patches on i386 boxen with bnx(4) and sip(4).
XXX Compiling and running on evbmips (MERAKI, ADM5120) is in
XXX progress.
2008-01-19 22:10:14 +00:00
garbled
cf3691bced Mac doesn't need the special hack for the bridge mode prototype anymore. 2008-01-09 21:23:18 +00:00
ad
4a780c9ae2 Merge vmlocking2 to head. 2008-01-02 11:48:20 +00:00
ad
2ecdf58c2c Remove systrace. Ok core@. 2007-12-31 15:31:24 +00:00
dyoung
f72e4b15e1 Fix 'tags' target. 2007-12-31 10:45:22 +00:00
dyoung
13e9109580 De-__P(). 2007-12-29 23:12:38 +00:00
macallan
7eb34fdf1c get rid of macppc's private pci_bus_dma_tag 2007-12-25 17:55:10 +00:00
perry
970ad9314d Remove __attribute__((__noreturn__)) from things already marked __dead
Found by the department of redundancy department.
2007-12-24 15:46:45 +00:00
macallan
ddf0036d4b #define __HAVE_PRIVATE_PCI_BUS_DMA_TAG 2007-12-24 01:27:34 +00:00
macallan
7f37ac3821 fix sensor attachment 2007-12-12 18:19:20 +00:00
david
587cc41918 Wrong copyright template used on import. Referenced Regents, but
Berkeley wasn't in on this one.

closes port-macppc/37520, filed by Ted Unangst.
2007-12-11 23:23:02 +00:00
macallan
965a184e93 switch to majors.powerpc 2007-12-11 22:30:39 +00:00
macallan
1e6d2e66e6 make this compile again 2007-12-11 21:00:22 +00:00
garbled
76a99a952a Fix the endless stream of 7's problem on i8259-like interrupt controllers
once and for all.  The i8259 does not like to be read in a loop, when an
interrupt comes in, it will return a valid value, however, if you keep
reading it until there are no outstanding interrupts, it will return 7
(which is the lpt interrupt).  Change the pic handler to give an argument
to the get_irq functions of mode, which indicates if this is the first
time we are asking, or if we are just rechecking in a loop.  Non-i8259
handlers can safely ignore this argument.

Tested to fix the stream of 7's problem on prep and ofppc.  Got rid of
the nasty hack in ofppc with this too, and the prep machine seems to take
less interrupts now, which is a good thing.
2007-12-11 18:04:18 +00:00
jmcneill
4c1d81b2b5 Merge jmcneill-pm branch. 2007-12-09 20:27:42 +00:00
macallan
f2c6ff7989 finish mutexification, now ki2c compiles again 2007-12-07 16:01:19 +00:00
ad
065b6ba2fb lockmgr -> mutex 2007-12-06 17:00:31 +00:00
ad
4b293a84e1 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.
2007-12-03 15:33:00 +00:00
garbled
b0f4d9f970 Apply a set of patches from Frank Wille to make the genfb attachment work
better on ofppc.  In doing so, we also move a few functions around in
macppc and the generic ofw powerpc stuff to allow better sharing of code.
Also, introduce a model_init function.

move ofb_cons.c from macppc/dev to powerpc/oea and rename it to rascons.
This gets rid of some naming confusion, and makes it OFW-MI rather than
macppc specific.
2007-11-26 19:58:29 +00:00
ad
dc26833bb6 - Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.
2007-11-19 18:51:36 +00:00
ad
417cd168ee Use the softint API. 2007-11-19 18:41:29 +00:00
macallan
376f378895 deal with macppc not defining OPENPIC 2007-11-17 18:02:42 +00:00