Commit Graph

1461 Commits

Author SHA1 Message Date
macallan
0990226c00 use sgsmix if present and appropriate 2007-01-17 23:34:29 +00:00
macallan
8e8447a9f0 use pmu and cuda for reset, shutdown etc. when appropriate
also deal with adbkbd vs. akbd
2007-01-17 23:27:59 +00:00
macallan
a17b551fce new drivers for pmu and cuda 2007-01-17 23:25:45 +00:00
macallan
14e075c835 add pmu and cuda at obio 2007-01-17 23:23:08 +00:00
macallan
02a1d394fc finding the console node / instance handle moved into machdep.c 2007-01-17 23:08:08 +00:00
macallan
398d6bdd70 prefix a hexadecimal address with 0x 2007-01-17 23:05:49 +00:00
macallan
ee9492db19 use properties to pass additional data to the console device,
like static EDID, framebuffer parameters etc.
2007-01-17 23:00:31 +00:00
macallan
dddce0d0c3 set FORCE_FUNCTION_KEYS since pretty much all halfway recent *Books need it
also disable COMPAT_LINUX for now, will re-enable it when it's actually useful
2007-01-17 22:45:51 +00:00
macallan
7d1cc4454c for trackpads add a sysctl to control wether tapping causes button events 2007-01-14 23:59:06 +00:00
uwe
b7d531ed9e Add options OFB_FAKE_VGA_FB (commented out).
XXX: Where's ofb(4)?  (hi, macallan!)
2007-01-12 21:24:40 +00:00
uwe
369020109e options<space><tab> police 2007-01-12 19:34:33 +00:00
uwe
c2f6157b26 Replace long list of "audio* at foo?" attachments with single
audio* at audiobus?
2007-01-12 19:30:35 +00:00
uwe
0c62f0125f options<space><tab> police 2007-01-12 19:09:07 +00:00
macallan
4488d8197e if we encounter a cardbus bridge with bogus bus number try to get OF to
assign it a bus number so cardbus* will attach properly.
Should fix PR26508
2007-01-03 22:28:30 +00:00
yamt
3f0f3de613 update comments on NFS_V2_ONLY after nqnfs removal. no functional changes.
from Arnaud Lacombe.
2006-12-29 21:49:03 +00:00
yamt
8bf7662829 merge yamt-splraiseipl branch.
- finish implementing splraiseipl (and makeiplcookie).
	  http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
	- complete workqueue(9) and fix its ipl problem, which is reported
	  to cause audio skipping.
	- fix netbt (at least compilation problems) for some ports.
	- fix PR/33218.
2006-12-21 15:55:21 +00:00
macallan
b2bac7650b don't pretend to support 8kHz since the chip really doesn't
noticed by Marco Trillo
2006-12-17 21:26:04 +00:00
macallan
b6131134e7 make this compile without wsdisplay 2006-12-16 05:05:50 +00:00
macallan
af3a3c2797 (hopefully) fix a panic when ofb attaches without being console 2006-12-16 03:31:46 +00:00
macallan
35a2b63b90 actually change the sample rate when asked to.
Fix provided by Marco Trillo in PR35204
While there also enable 24bit I/O.
2006-12-11 02:17:53 +00:00
macallan
610ea4a4c0 don't issue ADB commands if there's no adb node.
This should fix spontaneous poweroffs seen on PowerBooks that have no ADB
(last generation PBG4 which have only USB)
needs testing on more machines
2006-12-10 19:28:12 +00:00
macallan
74ab06b7a7 when powering up the mediabay wait two seconds before looking for devices
Without this CDROM drives wouldn't be found when hotplugged.
2006-12-10 02:41:30 +00:00
tsutsui
bad6707cdd Get info of kernel symbol table from bootloader before calling consinit().
consinit() was moved before oea_init() in rev 1.136, but startsym and
endsym are not initialized at that point.
Now kernel symbols are usable (on ddb(4), ksyms(4) etc.) again on macppc.
2006-11-29 16:31:19 +00:00
scw
e07faf8a74 Replace the myriad copies of bounds_check_with_label() with a single MI
version.

Add disk_blocksize(9) so that disk drivers can record the physical
block size of a disk if it is different to DEV_BSIZE. Right now this
simply initialises dk_blkshift and dk_byteshift according to the
supplied block size. This information is used in the MI version of
bounds_check_with_label().
2006-11-25 11:59:55 +00:00
wiz
6919c6578c s/independant/independent/, from Zafer. 2006-11-24 22:04:21 +00:00
tsutsui
18bff81fab Add rgephy at mii for Realtek 8169S. 2006-11-18 18:28:15 +00:00
macallan
aa4a0d1a02 add RADEONFB_MMAP_BARS 2006-11-17 17:01:47 +00:00
he
0b108ad573 Adapt to the wsmouse_input() change where we now require the 'w' axis. 2006-11-13 09:35:34 +00:00
plunky
57c0199dcf Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
2006-11-12 19:00:42 +00:00
jmmv
fb3e66fdb3 Enable TMPFS by default. OK'ed by core@.
I'm leaving those platforms with few users and those whose machines are
not very powerful untouched per uwe@'s suggestion.  The port masters or
the real users of those ports are better suited to make the decision of
enabling it.
2006-11-11 19:00:16 +00:00
jmmv
7a13fe4abf Remove tmpfs's experimental status. OK'ed by core@. 2006-11-11 18:47:08 +00:00
macallan
a6f7fc75a8 enable accelerated wsdisplay drivers 2006-11-08 05:48:43 +00:00
macallan
4f70466a7c split ofb into one part that attaches right on kernel startup and one that
attaches to pci so we can build kernels with - say - machfb but without
ofb at pci.
2006-11-08 01:25:10 +00:00
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
mrg
4b539e3eec move a label such that it is only visible in the scopes it is used in. 2006-10-24 02:47:40 +00:00
bouyer
154d613f0b Add support for the Intel 80003 Gigabit Ethernet controller (found e.g. in
newer server chipsets) to wm(4), from the FreeBSD em(4) driver.
While there, add a few other Intel Ethernet controller that should work as
is.
Properly update the RX error and TX collision counters.
Add ikphy(4), a driver for the Intel i82563 Kumeran 10/100/1000 Ethernet PHYs
2006-10-21 14:10:32 +00:00
tsutsui
881db3b0de Defer enabling hardware interrupts until all timecounter(9)s are initialized
in cpu_initclocks(9), and then remove "if (cold)" check in decr_intr().

Fixes long delay during config_process_deferred() for interrupt_config_queue,
OK'ed by macallan.
2006-10-19 14:25:29 +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
tsutsui
a674247cab Add vge at pci and ciphy at mii. Working on my Apus2000. 2006-10-14 20:08:07 +00:00
macallan
222fbf8824 clear only interrupts we really use, fixes weirdnesses with PCMCIA cards on
my PB3400
2006-10-13 19:48:41 +00:00
tsutsui
498acdb572 Use a non-zero quality for mftb counter. 2006-10-13 14:17:37 +00:00
macallan
9be39536c1 don't run clock interrupt stuff as long as we're cold 2006-10-03 02:07:37 +00:00
chs
e8295642bd remove MALLOC_NOINLINE, it doesn't do anything anymore. 2006-10-02 03:28:29 +00:00
macallan
b6a2386cce Let everyone use the same ticks_per_intr. Doh. 2006-10-01 20:38:35 +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
macallan
ed1eed3512 add timecounter support, mostly from prep. 2006-09-29 22:20:08 +00:00
he
66964d9c22 When the implementation of lpic_dump() is inside DIAGNOSTIC, the
declaration of it has to be too.
2006-09-29 07:37:36 +00:00
he
bc9fb2d92d Since intr_spin is declared inside #ifdef DIAGNOSTIC, make sure the uses
are too, so that this builds without DIAGNOSTIC defined.
2006-09-28 21:34:59 +00:00
dyoung
1d6d201f2e Activate ath(4) in GENERIC, since it works under light testing on
my Powerbook G4.
2006-09-28 07:57:49 +00:00
macallan
88681719b0 on PowerBook 3400c and similar machines redirect the built-in tlp's IRQ to
60 if we find a 2nd OHare - OF claims 27 which is wrong and keeps the tlp
from working.
Tested on a PB3400c, should work on 2400 and original G3 as well.
2006-09-27 22:44:18 +00:00
macallan
37fe34eef6 rewrite most of the Old World interrupt handling to allow things like
cascaded PICs found in some PowerBooks, like two OHare in the PB3400c
2006-09-27 22:41:55 +00:00
manu
f309b668fd - Document COMPAT_15 as doing nothing
- Add COMPAT_15 to all the kernel that had COMPAT_14, for the sake of coherency
- Remove the only occurences of #ifdef COMPAT_15 in the tree: for the ARM
ports, COMPAT_15 was always used in conjunction with EXEC_AOUT. Only EXEC_AOUT
matters here.

This address kern/18407
2006-09-27 21:42:04 +00:00
elad
2f417d0f92 Oops! forgot "options" in previous commit. Pointed out by freza@, thanks! 2006-09-26 14:30:26 +00:00
elad
8b4adae65a Make PaX mprotect(2) restrictions more accessible.
On amd64, sparc64, i386, and alpha, they will be compiled in and disabled
by default. That means that to use them you either enable the "global"
knob with sysctl, or use paxctl(1) to enable it on a per-program basis.

On sparc and macppc just include a commentd out line in the GENERIC kernel.
2006-09-26 14:08:18 +00:00
briggs
65b5f899a0 Dump the pin and line information only if DEBUG is defined. 2006-09-24 19:17:56 +00:00
briggs
06b73e4c8c Match APPLE_INTREPID2_* 2006-09-24 19:17:28 +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
sanjayl
7b8d178f80 Undo my half hearted atttempt at porting ofwboot to the G5.
Thanks to Cherry for pointing this out, and my apologies.
2006-09-18 10:19:00 +00:00
uwe
7756bb963d Set NOMAN so that running make locally completes successfully. 2006-09-16 00:57:49 +00:00
gdamore
490f9510c6 Convert macppc to generic todr. ok macallan@. 2006-09-13 03:37:20 +00:00
itohy
0a30900857 Add PIOBM (busmastering transfer using ATA PIO mode) support.
The PIOBM is used by only one driver (will be added later,
stay tuned) and intruduce an attribute "ata_piobm" so that
it will be conditionally compiled in.
The "ata_dma" (busmastering transfer using ATA DMA mode) and
"ata_udma" (busmastering transfer using ATA Ultra DMA mode)
attributes are also added for consistency, but unused for now.
2006-09-07 12:34:41 +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
4139dfe2aa Move a variable to prevent a "unused" variable warning. 2006-09-01 03:24:50 +00:00
matt
28ee68ae9b Make this compile. The "fixed" bus_space_tag_t is horrible. 2006-09-01 03:24:08 +00:00
he
2f6928fe68 Use the common <dev/apm/apmio.h> file instead of replicating struct and
ioctl definitions in a local copy.  What remains is local additions.
Makes usr.bin/kdump build for macppc again.
2006-08-29 18:17:33 +00:00
christos
e0df1e4c51 PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
2006-08-26 20:26:43 +00:00
tsutsui
6ff205ce76 Remove obsolete #options VERIFIED_EXEC, found by grep(1). 2006-08-26 07:59:21 +00:00
sanjayl
ba5eabd137 the following address a couple of issues with the G5 port.
(1) failsafe.c  allows character input from the failsafe
console device. This is the early console device that is used for output before
the pmap layer is initialized.

(1) locore.S: make sure that the size of the cacheline for
dcbz is set to the default of 128 bytes. It also sets up other mode bits on
the 970.  This fix allows the G5 to boot into full multi user mode using a
NFS mounted root file system.
2006-08-23 05:58:39 +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
riz
0bfc315592 Add sk(4) now that it works. 2006-08-22 06:49:55 +00:00
sanjayl
5576a1bb85 G5/970 updates:
Setup cache bits in HID5 early on so that dcbz/icbi use the
128 byte cache line size.  The mismatch was causing dynamically linked
apps to randomly coredump.

With this fix, the G5 can boot into full multi-user by using a NFS
mounted root file system.
2006-08-15 03:29:55 +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
jmcneill
fc371b8f09 Please don't voluntarily panic before looking for ohare mac-io; I need
ohare on my Performa 6360.
2006-08-14 11:17:59 +00:00
skrll
1a3062e81b s/adpater/adapter/
Prompted by PR/34195
2006-08-14 06:22:33 +00:00
christos
b300b74469 Disable SYSTRACE by default on all kernels (discussed with core) 2006-08-12 15:29:52 +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
cube
cad5e9a56c Remove "atapibus* at umass?" and "scsibus* at umass?" when there is
already an attachment to the interface attribute (atapi and scsi).

Part of PR#34085, although it is the contrary to what the submitter
suggests (which shows that having both in a config file can be confusing).
2006-07-26 07:00:23 +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
rpaulo
6c7e5e5535 Enable altq for macppc. 2006-06-19 21:36:56 +00:00
freza
dc25af75d0 Merge multiple definitions of cntlzw() ("count leading zeros")
instruction-wrapper to <powerpc/cpu.h>.

OK by briggs@
2006-06-13 18:24:37 +00:00
kardel
e11bb150ed avoid shadowing time while it still exists 2006-06-07 23:22:52 +00:00
mrg
dca7185f31 rename the local 'devsw' to of_devsw - devsw is already defined in libsa
as an 'extern' but this one is static.
2006-05-24 21:24:25 +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
gdamore
e6f1df1eba Fix to allow macppc to crossbuild when host is not NetBSD.
Fixes PR macppc 33196.  Reviewed by macallan@
2006-04-07 02:34:55 +00:00
gdamore
ca7d761296 Rename AH_DEBUG, AH_ASSERT, and AH_DEBUG_ALQ to ATH_XXX.
Use the opt_ah.h for the provided HAL to get options like AH_REGOPS_FUNC.
Add AH_REGOPS_FUNC to a few opt_ah.h that don't have it in this version
of the HAL but need it.  (The next version from Sam should have this fixed
in it.  If it doesn't, then we'll have to take care at import time.)

Ultimately, this should make future imports even easier, and individual ports
should not have to worry about whether AH_REGOPS_FUNC is properly defined or
not, since the opt_ah.h will just take care of it automatically.

Ok'd by dyoung@.
2006-04-05 06:54:26 +00:00
gdamore
75670ddc44 Convert existing ath users to new Makefile, except for amd64, which needs
the rules due to needing to conditionally postprocess the HAL object file.

Macppc needs a a non-ELF HAL (EABI) object, so take care of that by default
in the atheros include file.
2006-04-04 03:13:12 +00:00
gdamore
9a2b9dd63b Reorganize ath layout as requested by sam@ and suggested by dyoung@ in
http://mail-index.netbsd.org/tech-net/2006/03/15/0000.html.

The new layout almost precisely matches FreeBSD, and should make
future imports much easier.

At the same time, import the current 0.9.16.16 HAL from FreeBSD.  According
to sam@, this is the proper version we should be using.
2006-04-02 05:52:14 +00:00
thorpej
2be6494fc9 Use device_cfdata(). 2006-03-29 04:16:44 +00:00