Commit Graph

1317 Commits

Author SHA1 Message Date
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
pavel
dc1372c547 Add stf to all kernel configs which have INET6 and gif, except the INSTALL
ones and those for specific machines of developers. PR 32304.

OK'ed by rpaulo.

N.B. stf is a cloning device, so it still must be enabled by
"ifconfig stf0 create".
2006-03-28 20:58:39 +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
dyoung
54f0651a7c Build the right HAL for NetBSD/macppc. 2006-03-02 05:12:25 +00:00
yamt
ec5a93183a merge yamt-uio_vmspace branch.
- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.
2006-03-01 12:38:10 +00:00
thorpej
b8fb264ef0 Use device_is_a(), rather than the locally-defined DEVICE_IS() (which
uses a much more complicated mechanism to do the check).
2006-02-23 05:49:42 +00:00
thorpej
458b3e43f7 Use device_parent(). 2006-02-23 05:37:46 +00:00
perry
fbae48b901 Change "inline" back to "__inline" in .h files -- C99 is still too
new, and some apps compile things in C89 mode. C89 keywords stay.

As per core@.
2006-02-16 20:17:12 +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
0d73c74b90 default to a black on white console, with green kernel output 2006-02-16 02:18:50 +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
5093e77f22 uncomment audio at snapper. doh.
noticed by tonio
2006-02-10 20:59:33 +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
jmmv
2f1b4d0c28 Include files.usb earlier so that "pbms at uhidbus" works. 2006-02-06 19:23:17 +00:00
wiz
8a66dad2cb Fix typo in pbms description. 2006-02-06 17:53:32 +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
fb038910ea glue for powerbook mouse. 2006-02-05 18:10:57 +00:00
christos
8d7d99b57c powerbook 15" mouse driver from Johan Wallen. 2006-02-05 18:06:50 +00:00
cube
6ff13154dd Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
2006-02-05 05:01:48 +00:00
rpaulo
e1c6b6ed0f bpfilter doesn't accept count anymore. 2006-02-04 02:53:13 +00:00
reinoud
a92fdbbc53 Add commented out UDF file-system entry in all GENERIC configurations. 2006-02-02 21:32:08 +00:00
xtraeme
1d4757bcd5 Add ral(4) at cardbus/pci/uhub and atu(4) at uhub. 2006-01-31 16:38:58 +00:00
dsl
6f0f9f8763 Make almost everything #include <sys/bswap.h> instead of <machine/bswap.h>
The bswap.h and endian.h files are all rather incestuous, but I want to
get the constant folding stuff into one place - sys/bswap.h
2006-01-29 21:42:40 +00:00
uwe
2894b52ffd Add relevant #include's to get prototypes. 2006-01-28 01:23:16 +00:00
uwe
991ac5aec7 Call freeall() from chain() to match the code for other ofw platforms.
freeall() is a no-op.
2006-01-27 04:53:22 +00:00
uwe
ee90a05a3e Move #ifdef __notyet__ inside freeall() to match sparc and ofppc. 2006-01-27 04:51:47 +00:00
uwe
f77271b258 Get rid of unused variables. 2006-01-27 04:01:04 +00:00
uwe
0ccdbf50cf Include relevant libsa headers to make WARNS=4 happy. 2006-01-27 03:58:27 +00:00
uwe
31affa1b85 Return 0 from net_close. 2006-01-27 03:48:15 +00:00
uwe
6c00e44048 Mostly make WARNS=4 happy.
Same object code generated, except for return 0 in devclose.
2006-01-27 03:43:54 +00:00
uwe
bcb1033b34 Make WARNS=4 happy. 2006-01-27 03:11:33 +00:00
uwe
f75f446e52 More constification. 2006-01-27 03:07:31 +00:00
uwe
d9fda226fc Tell gcc that startup and stack are used.
In startup remove declarations of unused symbols.
This file now compiles with WARNS=4.
2006-01-27 02:58:50 +00:00
uwe
f62a1602ab Make -Wcast-qual happy. 2006-01-27 02:54:15 +00:00
uwe
967fd50006 Pull cleanup fixes from sys/arch/shark/stand/ofwboot/alloc.c.
These files are now almost identical.
2006-01-27 02:39:07 +00:00
christos
606bb2caed free -> dealloc
unsigned -> size_t for alloc/dealloc
2006-01-25 18:28:25 +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
xtraeme
668713f3d9 Enable rlphy(4). 2006-01-04 23:38:27 +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