Commit Graph

164847 Commits

Author SHA1 Message Date
wiz ece8110f42 Fix typo. 2007-12-17 23:59:41 +00:00
apb 88718b259c Change O_NDELAY to the POSIX standard O_NONBLOCK. This should fix
a compile error when building as a host tool.
2007-12-17 23:04:37 +00:00
christos 08face766e Fix a (very old) file leak. From Anon Ymous 2007-12-17 22:06:00 +00:00
dsl 5c3e6d0c07 Regen for 'const' killing. 2007-12-17 22:05:41 +00:00
dsl 06bce1608a Remove all the 'const', they end up applying to the structure members
themselves, not where the 32bit pointers reference.
2007-12-17 22:04:32 +00:00
phx 86c26b70d7 xen did no longer build.
Temporarily reverted to 1.47. Will need some time to find a good solution.
2007-12-17 22:01:12 +00:00
dsl 4f69eadcae svr4_32_sys_creat64() and svr4_32_sys_creat() are equivalent, as are
open64 and open, so just have one set of entry points.
2007-12-17 21:58:34 +00:00
dsl 36fb6d9db7 Revert previous. 2007-12-17 21:48:23 +00:00
dsl a098759aae creat64 and open64 just called the creat/open function.
Change to do it here.
2007-12-17 21:39:17 +00:00
dsl 686e359d32 Regen without any 'const' members of the syscall argument structures. 2007-12-17 20:47:31 +00:00
dsl bf434e38c7 Remove all the 'const'. Although the fields might be 32bit pointers to
constant data, the 'const' applies to the field itself - which is stupid.
2007-12-17 20:45:29 +00:00
christos 848569aa46 from ftp.openbsd.org 2007-12-17 20:15:38 +00:00
garbled d8e4680b19 Fix a mistake in boot.c Forgot to remove reference to residual.h and add
reference to iplcb.h
2007-12-17 19:54:32 +00:00
christos 6d8587f061 from jmcneill: suspend and resume handlers for spic. 2007-12-17 19:51:09 +00:00
garbled 8797c0442b Add rs6000 to this file so it can be easily cross-built. 2007-12-17 19:23:44 +00:00
garbled d1d2109e89 Add some files that got missed in the initial import of port-rs6000. 2007-12-17 19:11:58 +00:00
garbled 68fe5b6f0a Import the rs6000 port into the tree.
This port of NetBSD is intended to run on MCA-based IBM RS/6000
machines.  The port so far has only been tested on a 7006-41T, which is a
601-based RS/6000.  The port also contains a limited set of code for the
7012-3XX machines, but support for those is a long way off still.

The port builds and generates a working kernel, however, it still lacks
bus_dma code for the MCA bus, so at present, only the com ports work,
though any other device (such as the printer/keyboard) located on the
ioplanar could probably be made to work.  Work will continue on this port
as I iron out the DMA code.

This port was made possible by a generous gonation of hardware by Kevin
Bowling, who also provided much of the documentation for the port.
2007-12-17 19:09:01 +00:00
apb 68039cfd90 This is a host tool; include nbtool_config.h 2007-12-17 18:18:21 +00:00
njoly c7d62a5250 Fix linux32_sys_wait4 by doing its own jobw instead off calling
linux_sys_wait4. It worked except when child resources were requested,
because 32/64 bits struct rusage differs in size ...

While here, update linux32_sys_waitpid to use linux32_sys_wait4 with a
NULL rusage.
2007-12-17 18:10:37 +00:00
rumble a2d448e894 s/prop_array_t;/prop_array_t array;/ 2007-12-17 17:52:37 +00:00
riz 344b2782f7 Add drvctl(4) 2007-12-17 16:45:12 +00:00
yamt a5f2bdb11c nfs_create: try GUARDED if EXCLUSIVE is NOTSUPP. 2007-12-17 16:04:31 +00:00
macallan 852515ae5f deal with a bug in the Sun Raptor's firmware which reports
linebytes == width even in 32bit colour
2007-12-17 15:38:31 +00:00
jmcneill dd0320ef8b Fix comment before AcpiOsGetTimer, no functional change. 2007-12-17 15:02:31 +00:00
joerg c33da35bfe Belatedly add a note about acpiec changes from the jmcneill-pm merge. 2007-12-17 14:38:40 +00:00
joerg 599a3a8e85 Revert, fixed differently. 2007-12-17 14:11:53 +00:00
joerg 1dfe814354 Don't call acpi_md_sleep_init on Xen, it doesn't support ACPI sleep
anyway.
2007-12-17 14:11:12 +00:00
joerg 60a3119281 Alias UTF-8 to utf8 for symmetry with latin1. 2007-12-17 14:06:57 +00:00
joerg dffe4b9c05 Use GENERIC for installation as well, just add the ramdisk hooks. 2007-12-17 13:48:18 +00:00
joerg cc25cbe9b0 Don't hardcode limits for the floppy number on amd64. Just let it use as
many floppies as necessary.
2007-12-17 13:47:29 +00:00
jmcneill edbb745595 Note ACPI-CA updated and the addition of pmf. 2007-12-17 13:09:11 +00:00
tsutsui 4e3d8b015c Handle a quirk of newer MCP6x chips on reading MAC address.
Fix from Richy Kim in PR kern/36576.
2007-12-17 12:41:06 +00:00
agc bb94308fd7 Pre-define HAVE_CONFIG_H for the portable autoconf-ed version as well. 2007-12-17 12:29:05 +00:00
tsutsui 8cdfb3fc02 Fix from YAMAGUCHI Takahiro in PR kern/30023:
Pass correct EEPROM address in fxp_write_eeprom().
2007-12-17 12:18:31 +00:00
agc 1e49aaff48 clean up a dependency on a file which has been removed 2007-12-17 12:05:35 +00:00
jnemeth 2e2f0a7f1e usr/include/sys/pmf.h as it is no longer installed, so mark it obsolete
XXX lines should not be removed from this file
2007-12-17 07:53:41 +00:00
dyoung d475558145 Cosmetic: wrap some lines. Join some lines. struct device * ->
device_t.  Use device_t accessor functions.
2007-12-17 05:05:03 +00:00
riz 1d7c0bc27f Add drvctl(4) 2007-12-17 04:36:16 +00:00
riz ed16d9b321 Create drvctl as part of 'all'. 2007-12-17 04:29:50 +00:00
jnemeth 5e804d8ae6 add usr/include/sys/pmf.h 2007-12-17 00:46:10 +00:00
drochner 25d7d279f8 don't include <sys/pmf.h> for userland programs, saves some recompilation
if internals are changed
2007-12-16 23:24:21 +00:00
jmcneill f13c9086d0 acpi_pci_link_route_interrupt: if we're going to return a valid IRQ, we
need to fill in irq, pol, and trig arguments.
2007-12-16 23:11:08 +00:00
dyoung 48b8e42d80 Fix a bug I introduced to rtw_chan2txpower() the other night.
Fix a bug in device detachment: change a break statement to a
/*FALLTHROUGH*/ in rtw_detach().
2007-12-16 21:39:33 +00:00
dyoung cf784f4497 Improve pci, cbb, cardslot, cardbus, and pcmcia to support detachment
of this entire device tree:

pci0 at mainbus0
        elansc0 at pci0
                gpio0 at elansc0
        cbb0 at pci0
                cardslot0 at cbb0
                        cardbus0 at cardslot0
                        pcmcia0 at cardslot0
        cbb1 at pci0
                cardslot1 at cbb1
                        cardbus1 at cardslot1
                                rtw0 at cardbus1
                        pcmcia1 at cardslot1
        sip0 at pci0
                nsphyter0 at sip0
        sip1 at pci0
                nsphyter1 at sip1

Whew!
2007-12-16 21:28:30 +00:00
elad 17c98b1431 Make solisten() take an lwp pointer like the rest, so it can be passed down
to pr_usrreq.
2007-12-16 21:25:59 +00:00
dyoung 84e05249e0 Collect garbage. All of this code is in pci/if_sip.c, now. 2007-12-16 21:17:44 +00:00
dyoung 59b1a7d60b Convert many macros to inline subroutines. Some of the subroutines
probably should not be inline.
2007-12-16 21:17:00 +00:00
dyoung 15bdc66954 Miscellaneous changes designed to improve elansc suspend/detachment:
1 Synchronize access to the softc and hardware with a mutex.
2 Add the sc_suspended flag, and observe it in the watchdog routines.
3 Re-order operations in elansc_attach() and elansc_detach() to
  protect against access while the device is not fully configured.
4 Cancel detachment if sysmon_wdog_unregister() is cancelled by a
  signal.
5 Add an empty childdetached method so that I can detach gpio0 at
  elansc0.  (XXX cannot individually re-attach gpio0.)
2007-12-16 21:14:22 +00:00
jmcneill a73b778622 Now that ACPI-CA doesn't parse the X/RSDT for us, we need to map it
ourselves.

Before:
  acpi0: X/RSDT: OemId <      ,        ,00000000>, AslId <    ,00000000>
After:
  acpi0: X/RSDT: OemId <LENOVO,TP-7L   ,00001260>, AslId < LTP,00000000>

ACPI can now access the X/RSDT using 'acpi_map_rsdt' and 'acpi_unmap_rsdt'.
2007-12-16 21:10:34 +00:00
dyoung 10bb018ab2 In sysmon_wdog_unregister(), do not return until all of the watchdog
timer's users are gone.  A signal cancels the unregister:
sysmon_wdog_unregister() leaves the watchdog registered.

The only user of sysmon_wdog_unregister() that I can find is in
elansc(4), so this looks like a safe change to make.
2007-12-16 21:07:45 +00:00