Commit Graph

393 Commits

Author SHA1 Message Date
macallan
0bb8ed626b allow IDE DMA on Heathrow again 2006-11-07 02:23:27 +00:00
tsutsui
23c5e05646 Remove a function declaration of zssoft() which was
inside #ifndef __HAVE_GENERIC_SOFT_INTERRUPTS.
2006-11-02 20:43:30 +00:00
tsutsui
ce97c50f55 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.
2006-11-02 20:05:04 +00:00
tsutsui
5e4ac42c65 macppc always defines __HAVE_GENERIC_SOFT_INTERRUPTS,
so remove #ifdef/#ifndefs against it.
2006-11-02 19:41:34 +00:00
jklos
89009eb679 Fix for PR 33667. Note that putting bmac_mediachange where thorpej
suggested doesn't fix this issue. Not a perfect fix, but much better than
leaving it as it was. Tested on several iMacs and a blue & white G3.
2006-10-18 21:37:48 +00:00
macallan
84da46d4d5 ansify 2006-10-15 21:23:19 +00:00
macallan
e57fef0a3e report button clicks when tapping a trackpad
Tested on a PB3400c and an iBook G4
2006-10-15 21:15:21 +00:00
elad
e8373398dc Adapt MD code to KAUTH_DEVICE_TTY_OPEN. Patch from Matt Fleming, thanks! 2006-10-01 18:56:21 +00:00
jmcneill
f135e0d607 Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
2006-09-24 03:53:07 +00:00
jmcneill
3150bfdedd Don't use // for comments. 2006-09-24 03:47:09 +00:00
gdamore
490f9510c6 Convert macppc to generic todr. ok macallan@. 2006-09-13 03:37:20 +00:00
dogcow
f2d329dca0 remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP. 2006-09-07 02:40:31 +00:00
macallan
9de94f8e2e trying to use IDE DMA on a Heathrow macio is busted so disable it for now. 2006-09-04 03:44:10 +00:00
matt
28ee68ae9b Make this compile. The "fixed" bus_space_tag_t is horrible. 2006-09-01 03:24:08 +00:00
macallan
3887e678eb use gain table for master volume as well 2006-08-23 03:25:31 +00:00
macallan
ef6b7fdb0e fix some KNF nits 2006-08-23 02:56:32 +00:00
macallan
aa34d188fa back out previous commit since it breaks console output when not using a
serial console
2006-08-15 01:53:26 +00:00
macallan
5f55aaa2e1 Add audio input support. From Magnus Henoch, fixes PR 32664 2006-08-11 20:37:43 +00:00
sanjayl
265929b20e 1st cut of Powermac G5 support (uses bridge mode). 2006-08-05 21:26:48 +00:00
ad
f474dceb13 Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
drochner
e7c88abe60 Better explicitely specify the "ki2c" interface attribute,
so that the "config_found" can't hit "i2cbus".
Up to now, this relied on the fact that the i2cbus and ki2c
attach args both had a string as first element which was used
to distinguish. Now, interface attributes should take care
that attach arguments are not misinterpreted.
2006-06-26 18:37:53 +00:00
drochner
a3464e1d27 use the "i2cbus" interface attribute rather than putting a string name
into the i2cbus attach args
2006-06-26 18:21:38 +00:00
kardel
e11bb150ed avoid shadowing time while it still exists 2006-06-07 23:22:52 +00:00
elad
8ccb6c9341 integrate kauth. 2006-05-14 21:55:09 +00:00
jmmv
7a51d4dddc Add an extra cookie to the ioctl and mmap wsdisplay accessops that points
to the screen on which they are being called.  The driver cannot guess
this by itself but it is needed to implement, at least, the getwschar and
putwschar functions in the correct place.  There are no functional changes
yet.

Tested on i386 (vga, vga_raster, machfb, vesafb), macppc and sparc64.
Suggested and reviewed by macallan@.
2006-04-12 19:38:22 +00:00
thorpej
2be6494fc9 Use device_cfdata(). 2006-03-29 04:16:44 +00:00
lukem
a1f606d3fd Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
2006-03-08 23:46:22 +00:00
thorpej
458b3e43f7 Use device_parent(). 2006-02-23 05:37:46 +00:00
macallan
6fa7cdbb77 also check child nodes when checking if we attach to what OF thinks is the
console since some Radeons ( and probably others ) can have more than one
display - in this case /chosen and ofb's node would mismatch.
2006-02-16 18:48:38 +00:00
macallan
dfd5d19b24 bail out when trying to attach to something that's not the console.
Fixes problems with more than one graphics card. Since OF doesn't set up
any secondary graphics devices anyway we don't lose anything.
2006-02-16 02:15:29 +00:00
macallan
53b4acd93d Add support for colour and virtual consoles 2006-02-12 21:00:46 +00:00
macallan
dbe2bf713a ansify, de-__P(), sprinkle static 2006-02-07 02:29:28 +00:00
jmmv
cd5689ac5a Fix build by correcting pbms_ioctl's prototype. 2006-02-06 20:13:25 +00:00
xtraeme
2d45c66ceb Add a pbms(4) manpage. Remove it from the source code and update TODO. 2006-02-05 18:38:34 +00:00
christos
8d7d99b57c powerbook 15" mouse driver from Johan Wallen. 2006-02-05 18:06:50 +00:00
xtraeme
b768917ecd ktrace-lwp fallout. ok'ed by skrll. 2006-01-20 15:41:28 +00:00
bouyer
bf1a4d2af5 properly use ata_channel->ch_ndrive:
- initialize it properly in the bus front-ends (all 2, exept in wdc_pcmcia.c
  for the "Sandisk CompactFlash Card" where it's set to 1)
- remplace hardcoded '2' by ata_channel->ch_ndrive in MI IDE drivers.

From Christos Zoulas in kern/32501.
2006-01-16 20:30:18 +00:00
chs
6cb72218d4 switch macppc to use the MI zstty driver.
add macppc's ZS_TXDMA hooks there.
2005-12-27 17:20:54 +00:00
perry
50a256a3a0 __asm__ -> __asm
__const__ -> const
__inline__ -> inline
__volatile__ -> volatile
2005-12-24 23:23:59 +00:00
perry
2d65de2479 bare asm -> __asm 2005-12-24 22:45:33 +00:00
perry
5f1c88d70d Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:06:46 +00:00
macallan
8ef937c9e4 return SCSI_CHECK in xs->status instead of xs->xs_status
This fixes a whole bunch of weird errors that plague(d) mesh forever, like
- failure to spin up drives automatically
- occasional bogus 'drive offline' messages
- LONG delays when trying to use a ZIP drive

It will probably expose more problems, we'll see.
2005-12-17 21:48:13 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
macallan
c2b05b7fce Check for 'i2c-bus' child and if found look for i2c devices there instead of
directly under the ki2c node.
Needed for newer ( 2005? ) OpenFirmware.
2005-10-07 23:53:11 +00:00
macallan
aaddad0a64 forgot to commit this along with ofb.c 2005-09-23 17:51:37 +00:00
macallan
178f17c813 - center output to match firmware settings when using the ROM font
- allow the super user to mmap() the PCI IO area corresponding to ofb at offset
  0xf2000000 - needed by some XFree drivers ( approved by Bill Studenmund )
- add a hack to allow mmap()ing offset 0xa0000 - 0xbffff if not covered by the
  regular framebuffer mapping at offset 0 ( disabled by default, use options
  OFB_FAKE_VGA_FB ) - this allows buggy XFree drivers which expect the VGA
  framebuffer at this address to work.
2005-09-22 18:16:56 +00:00
kleink
aece7a90fd Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.
2005-09-06 21:40:37 +00:00
macallan
d9f9caa094 - don't call ki2c private functions anymore, use iic_exec() to be a good i2c citizen
- use the deq driver to find the mixer device
- add controls for bass and treble
2005-08-10 14:32:08 +00:00
macallan
98735d6c6c dummy driver to represent the uni-n node in OF and attach its children 2005-08-10 14:30:15 +00:00
macallan
f5c3157174 split from ki2c.c 2005-08-10 14:29:08 +00:00