Commit Graph

87077 Commits

Author SHA1 Message Date
macallan cc085574cb caddr_t -> void * 2007-03-23 17:35:02 +00:00
drochner ca93d5d12d simplify previous: no need to call pci_mapreg_info() 2007-03-23 16:39:07 +00:00
jmcneill 046c275369 Initialize mmadrsize in the non-i910 case, otherwise we end up passing an
uninitialized variable to bus_space_unmap.
2007-03-23 16:27:59 +00:00
jmcneill aeb34d786e Add viadrm 2007-03-23 15:00:38 +00:00
jmcneill c36fda54e9 Import viadrm(4) from DRI git. 2007-03-23 14:58:55 +00:00
liamjfoy a3580ff06f Add a new sysctl net.inet6.ip6.hashsize to control the hash table size.
The sysctl handler will ensure this value is a power of 2

ok dyoung@
2007-03-23 14:24:22 +00:00
njoly 1f4051d826 Fix generated file names from makesyscalls.sh (s/linux/linux32/).
From Edgar Fuß in PR/35956.
2007-03-23 12:26:10 +00:00
drochner f67e2cbf66 Free ressources more agressively.
(The natural place for this would be on each close, but we don't have
a driver entry point for this.)
from Yorick Hardy
2007-03-23 11:06:31 +00:00
mrg 2cdaa49944 implement emul.linux.kern.machine, which can be set to "i686", like
some applications seem to want.
2007-03-23 04:16:13 +00:00
uwe 7220e7517c We don't need SYMTAB_SPACE. 2007-03-23 02:19:17 +00:00
xtraeme 3cd917fe6c Use void * rather than caddr_t to fix the build. 2007-03-22 23:35:00 +00:00
christos b98f564e9f prevent caddr_t use in the kernel so that it does not creep in again. 2007-03-22 18:00:39 +00:00
jmcneill 3b4d961fa2 Re-enable writeback test (shouldn't have been disabled in the first place) 2007-03-22 15:17:59 +00:00
jmcneill 7126d77514 Newline after foodrm0 at vga0 message. 2007-03-22 15:14:20 +00:00
dillo 41627b2c38 Add support for HFS Wrapper (HFS+ volume inside an HFS volume).
Remove offset argument, we should now find an HFS+ volume in any
of its standard places.

Based on work from and test image provided by Pelle Johansson.
2007-03-22 13:21:28 +00:00
dillo 30f474b9e1 Add support for HFS Wrapper (HFS+ volume inside an HFS volume).
Remove offset argument, we should now find an HFS+ volume in any
of its standard places.
2007-03-22 13:21:27 +00:00
dillo 081267c306 Add a few. 2007-03-22 13:20:13 +00:00
gdt 1ecfe4dec1 Add apm emulation via acpi.
Enable cardbus attachment for lots of devices.  The drivers were
already compiled in via pci attachment, and GENERIC supports cardbus,
so there's no reason not to attach.

With this, GENERIC.MP works well on a Thinkpad T60.

(proposed on port-i386, no objections received)
2007-03-22 12:40:06 +00:00
njoly 6beba6f9d8 s/linux/linux32/ in warning messages. 2007-03-22 12:08:51 +00:00
garbled ae2d0d18ae When we have a non-PReP pci bridge, we need to perform a single swizzle
on the pin, to get us the right pin on the underlying PReP bridge to wire
the interrupt to.  Tested with a 4-port fxp card on a 7043-140.  Thanks
to simon for helping me get the math right.
2007-03-22 08:23:10 +00:00
xtraeme efcf1e7924 Use __arraycount. 2007-03-22 06:00:33 +00:00
jmcneill 846be51501 Pull up misc radeon bug fixes from DRI. 2007-03-22 01:36:42 +00:00
xtraeme bd90d620b9 Add missing $ in the RCS ID. 2007-03-21 23:24:58 +00:00
xtraeme 5b08a540fa static'ify. 2007-03-21 22:52:14 +00:00
jmcneill 48e45911b6 printk -> printf 2007-03-21 22:44:28 +00:00
degroote 507fd51bd3 Call key_checkspidup with spi in network bit order in order to make correct
comparaison with spi stored into the sadb.

Reported by Karl Knutsson in kern/36038 .
2007-03-21 22:38:34 +00:00
jmcneill 4683f1b535 Pass a proper vaddr to uvm_mmap. 2007-03-21 22:24:57 +00:00
xtraeme 4535c92912 Remove the MSR read IPI handler from X86_IPI_NAMES and use the
correct number in X86_NIPI.
2007-03-21 22:23:15 +00:00
jmcneill ccbe7856ca Initialize extra AGP resource slots. 2007-03-21 22:16:45 +00:00
jmcneill 0f6e823d07 In drm_ioremap, provide extra slots for mapping AGP memory space; it's not
reasonable to assume that these regions will show up in a VGA BAR.
2007-03-21 22:15:59 +00:00
xtraeme ef049074f2 Remove unneeded headers. 2007-03-21 21:56:52 +00:00
dsl f99253cbf6 Somehow a single K&R function definition was lurking - nuke it. 2007-03-21 21:18:56 +00:00
macallan 1c4c684256 try to attach a drm 2007-03-21 20:54:30 +00:00
macallan fd3677f42a defflag RADEONFB_DEBUG and MACHFB_DEBUG, pull in drm for both, pull in edid
for machfb
2007-03-21 20:52:41 +00:00
macallan 62ee0604ec use EDID data passed as property when present
This should allow radeonfb to do The Right Thing on Macs that use non-
standard video timings and have built-in monitors that don't provide data
via DDC since those usually have an EDID block in the OF tree.
2007-03-21 20:48:07 +00:00
xtraeme 6e5117d74f typo 2007-03-21 18:28:26 +00:00
ad 6594c9ccdc NetBSD 4.99.16 - struct lwp changed. 2007-03-21 18:28:13 +00:00
ad fed1793605 Improvements to lwp_wait1(), for PR kern/35932:
- Better detect simple cycles of threads calling _lwp_wait and return
  EDEADLK. Does not handle deeper cycles like t1 -> t2 -> t3 -> t1.
- If there are multiple threads in _lwp_wait, then make sure that
  targeted waits take precedence over waits for any LWP to exit.
- When checking for deadlock, also count the number of zombies currently
  in the process as potentially reapable. Whenever a zombie is murdered,
  kick all waiters to make them check again for deadlock.
- Add more comments.

Also, while here:

- LOCK_ASSERT -> KASSERT in some places
- lwp_free: change boolean arguments to type 'bool'.
- proc_free: let lwp_free spin waiting for the last LWP to exit, there's
  no reason to do it here.
2007-03-21 18:25:59 +00:00
xtraeme 6ae05af027 - Remove ci_msr_rvalue, it's not useful anymore as yamt@ pointed out.
- Remove completely debug from msr_ipifuncs, now it's known to work.
2007-03-21 18:20:59 +00:00
drochner cd09748288 remove a debug printf which I had left in accidentally,
print the standard "dv_xname: interrupting at ..." line instead
2007-03-21 17:45:18 +00:00
drochner d414de4f1a since no boundary restrictions apply, a zero boundary argument to
bus_dmamem_alloc() is the right thing
2007-03-21 17:15:53 +00:00
drochner 7a0663bdb7 revert previous - it doesn't work on i386 at least 2007-03-21 17:01:56 +00:00
isaki ff418f03d1 Fix mis-substitution of RCS Id, and avoid it.
Reviewed by wiz@.
2007-03-21 15:02:08 +00:00
uwe fc61a45d33 There are only 32 bits in a VA, not 33 - sync comment with this harsh reality. 2007-03-21 14:50:43 +00:00
tsutsui 19daf5ad0b Cleanup handling of quikrs on each RealTek chip:
- replace rtk_type member in rtk_softc which has chip types
  with new rtk_quirk that represents quirks on each chip:
  - RTKQ_8129           doesn't have internal MII (used in rtk(4))
  - RTKQ_8139CPLUS      has different register layout (for re(4))
  - RTKQ_8169NONS       (original 8169) requires some settings on init
  - RTKQ_PCIE           requires different settings in setmulti
  so that we don't have to check each hwrev values or types everywhere
  and newer variants will also work without changes if they don't
  have other quirks
  (sc_rev is unchenged for now for reference to the Realtek's driver)
- don't check hwrev register in re_pci_match() but check
  only PCI_VENDER(), PCI_PRODUCT() and PCI_REVISION()
  so that we no longer have to map pci space there
- add a new HWREV value for another 8168 variant
- try to map PCI mem space more properly
- remove (probably unneeded) ifp->if_baudrate initialization

Tested on a newer 8168 variant by Dennis den Brok on tech-kern,
and also tested on 8139 and 8169C on macppc, and 8139C+ on landisk
by me.
2007-03-21 12:17:31 +00:00
tsutsui 298a18f6e7 Apply MI softintr(9) patch before it becomes rotten. Untested.
See also:
http://mail-index.netbsd.org/port-atari/2007/03/07/0000.html
2007-03-21 10:56:26 +00:00
tsutsui 1a9fc2f390 Use make some void * variables char * instead of sprinkling casts
for pointer arithmetics.
2007-03-21 10:26:19 +00:00
xtraeme 14d38361d8 Disable debug. 2007-03-21 06:50:36 +00:00
xtraeme bfde31a42f Remove the MSR read IPI handler, there won't be any driver that will
use it, and we can see if the values are ok in the CPUs in the write
operation.

Suggested by YAMAMOTO Takashi.
2007-03-21 06:36:42 +00:00
plunky 3d47fad4b8 disallow sending command packets of unexpected length 2007-03-21 06:22:07 +00:00