Commit Graph

82607 Commits

Author SHA1 Message Date
hamajima
7d30668340 fix unterminated #ifdef. PR34240. 2006-08-21 15:01:54 +00:00
jnemeth
3b961daf6c move 'PCI cryptographic devices' out of the middle of the Disk section 2006-08-21 10:50:00 +00:00
martin
5581630d1f Add <sys/lock.h> include for <sys/callback.h> 2006-08-21 09:06:06 +00:00
martin
b87950a9f6 Use %zu for size_t 2006-08-21 09:05:22 +00:00
bjh21
72e11b654e Clean out some of the junk from this file, sepcifically definitions for
an Amiga DMA controller, and #if 0'ed WD33C93 definitions that are duplicated
in sbicreg.h.  uPD71071 definitions can stay for now, since they're not
actually useless even though they're unused.
2006-08-20 19:26:52 +00:00
riz
a06f7205fb Some cleanup in skc_attach():
- does not need splnet()
	- disestablish the interrupt and unmap bus space on failures.
2006-08-20 18:04:53 +00:00
riz
c250a823e7 Make this driver compile when SK_USEIOSPACE is defined - I have no
evidence that this is actually needed except for the existence of the
code itself, but if it's going to be here, it should compile.  Tested
briefly on my ASUS motherboard with built-in sk interface.
2006-08-20 16:03:30 +00:00
christos
9d18036adc PR/34241: Dave Sainty: Bound a memcpy to the sizeof the buffer where we
are trying to save the contents, instead of trying to copy what the lenght
of the acpi resource tells us.
2006-08-20 15:10:59 +00:00
christos
cba8e50f44 From Elad:
Attached diff short-circuits kauth_authorize_action() if the request
comes from the kernel (NOCRED or FSCRED).

okay matt@
2006-08-20 15:05:14 +00:00
yamt
f3d146fd88 vmf_to_prf: tweak code to avoid a "may be used uninitialized" warning.
pointed by Kurt Schreiner.
2006-08-20 13:14:03 +00:00
yamt
4e59653466 move kmem_kva_reclaim_callback out of #ifdef DEBUG.
fixes compilation problem in the case of !DEBUG.
pointed by Kurt Schreiner.
2006-08-20 13:08:11 +00:00
blymn
50abf3c730 Add functions to the fileassoc interface to allow a "hint" to be provided
instead of performing an implicit VOP_GETATTR() when adding/looking up
fileassoc entries.
2006-08-20 10:38:23 +00:00
yamt
0406a06106 implement kva reclamation for kmem_alloc quantum cache. 2006-08-20 09:45:59 +00:00
yamt
fc12b34a0a kmem_init: use vmem quantum cache. XXX needs tune. 2006-08-20 09:44:06 +00:00
yamt
c8cdcde4de implement vmem quantum cache. 2006-08-20 09:43:08 +00:00
yamt
3c433fc395 implement PR_NOALIGN. (allow unaligned pages)
to be used by vmem quantum cache.
2006-08-20 09:35:25 +00:00
skrll
b33c02bc86 Remove the _UCONTEXT_TO_SIGCONTEXT() and _SIGCONTEXT_TO_UCONTEXT() macros
as nothing uses them and they wouldn't work as _MCONTEXT_TO_SIGCONTEXT()
and _SIGCONTEXT_TO_MCONTEXT() got deleted a while ago.
2006-08-20 08:02:21 +00:00
plunky
066074b94f Make btdev default count explicit 2006-08-20 07:06:57 +00:00
bjh21
d91f74bef1 Now that boot32 can pass in a useful frame rate, it's reasonable to use the
standard video mode list in our example kernels, rather that a somewhat
random subset.  So do that.
2006-08-19 23:01:23 +00:00
bjh21
da29c632f0 Add support to boot32 for passing a real vsync frequency to NetBSD.
Unfortunately, RISC OS doesn't seem to provide a sensible way to ask what
frame rate it's using so we resort to measuring it ourselves.
2006-08-19 22:44:57 +00:00
bjh21
a296cdc11f When looking for a screen mode at startup, skip any interlaced and
doublescan modes, since vidcvideo doesn't support them.
2006-08-19 22:38:42 +00:00
macallan
1ab7fe6df2 fix a typo so we actually write sane values into the clipping registers 2006-08-19 17:57:13 +00:00
dsl
79c382f0db There is no need to compile machdep.c with -O2 anymore.
Fixed by changing the asm for lidt() in cpufunc.h
2006-08-19 17:50:56 +00:00
bjh21
63030cca90 If we can't find a screen mode matching the bootloader's frame rate, choose
the nearest one, rather than the first one with the same resolution.  This
is likely to be useful when the bootloader finally passes a valid frame rate.
For now, it just favours flickery over non-functional.
2006-08-19 16:57:06 +00:00
plunky
95d2b886d7 The ubtbcmfw(4) driver fails to compile, as noted by PR kern/34219.
While it can be made to compile, the paradigm is not quite right because
it attempts to contact the filesystem during autoconfig which sometimes
causes a panic. Even if that was fixed, there is another potential problem
in that the driver tries/sleeps/tries/sleeps and the sleep could
theoretically sleep past the rc.d/btconfig stage and the controller
would remain unconfigured.

So, I have prepared a different method for loading the firmware to
Broadcom BCM2033 chip based devices. A package 'sysutils/bcmfw' will load
the firmware files via a ugen(4) device interface.

This update removes the ubtbcmfw(4) driver and adds a table to the ubt(4)
driver so that it will not attach to Broadcom BCM2033 based devices before
the firmware was loaded.

This fixes kern/34219
2006-08-19 16:35:02 +00:00
dsl
a30325d38e de __P() 2006-08-19 16:27:57 +00:00
dsl
c8da0759cd Fix build of machdep.c with -Os and -O3 2006-08-19 16:06:39 +00:00
dsl
f648ce90ee Fix the amd64 INSTALL kernel (builds of machdep.c with -Os and -O3).
Load the idt with non-randmon data.
2006-08-19 16:04:41 +00:00
dsl
52361b12c9 Change the 'asm' pattern for lidt so that gcc4 knows it references memory
and doesn't optimise out the assignments to the descriptor memory area.
i386 kernels now build with -Os (and -O3) applied to machdep.c
2006-08-19 15:21:23 +00:00
yamt
8f01bd288f pool_init: in the case of PR_NOTOUCH, don't bump item size to
sizeof(struct pool_item).
2006-08-19 14:01:15 +00:00
bjh21
9dc302fec2 Arrange things so that if MONITOR isn't defined in the kernel configration,
we use the standard mode list from videomode.c rather than one generated
by makemodes.awk.  This is less useful than it might be since without a useful
frame rate from the bootloader we're likely to end up choosing a screen mode
that's either flickery or too fast for the monitor (or DRAM bandwidth).
2006-08-19 13:34:15 +00:00
bjh21
72cec93787 The log2_bpp fields of the mode list generated by makemodes.awk weren't
used for anything.  Rearrange things so that it doesn't any more, and
just produces an array of struct videomode.  modedefs.c is looking
suspiciously much like videomode.c now.
2006-08-19 11:01:56 +00:00
skrll
326bcc171a Add some sysctl knobs to bring us closer to the FreeBSD driver.
Also sysctl enable the debug message printing (if IWI_DEBUG) is defined.
2006-08-19 06:32:52 +00:00
macallan
ea7df82ebc fix some typos, add mmap() support for X
needs options RADEONFB_MMAP_BARS for now
2006-08-19 04:39:32 +00:00
macallan
f5804719cd make this work on macppc.
fixes and caveats:
- will switch to 32bit colour, 8bit support needs some more work
- added support for fonts with widths that aren't multiples of 8
- for now the driver will always try to become system console
- mode switching works but is ugly
- all the acceleration bits work
- X should work with wsfb, mmap() needs some more work
- it still needs a hack to allow wsdisplay_cnattach to be called twice
2006-08-19 04:00:15 +00:00
bjh21
1e6fe5d059 Move calculation of a screen mode's frame rate out of makemodes.awk into
the kernel, removing an element from struct vidc_mode.  The calculation
is a bit pointless at the moment anyway, since both bootloaders pass in
a constant 56, but that might get fixed one day.
2006-08-18 23:25:10 +00:00
martin
eed884e62f Remove ISO and NS networking - the eon0 device is pretty confusing
in sysinst. XXX - we actually should remove it from GENERIC too.
2006-08-18 21:37:31 +00:00
yamt
36b78db59e ubc_fault: fix a deadlock in the case of uvm_loanbreak() failure. 2006-08-18 15:03:21 +00:00
martin
2dfd1d809c Fix wrong prom_getoption() return value checks 2006-08-18 11:17:25 +00:00
uwe
dee7f461a0 G/c unnecessary includes. 2006-08-18 02:42:38 +00:00
uwe
01cddb97a0 Refer sc_font.wsfont explicitly instead of playing cast tricks. 2006-08-18 00:41:57 +00:00
bjh21
4513244661 This is kernel-only now, so no need to check _KERNEL. 2006-08-17 22:47:33 +00:00
bjh21
15f26966cb There's no need to expose arm/iomd/vidc.h to userland any more, since
<machine/vconsole.h> has gone now.
2006-08-17 22:38:14 +00:00
bjh21
28d9a9e366 Switch to using the MI struct videomode for storing VIDC video timings.
struct videomode doesn't have a way to record border widths (though I
wonder if VESA's "margins" are the same thing), so we now just treat them
as zero.  Tested on my NC, which still seems to be working.
2006-08-17 22:33:59 +00:00
bjh21
279e0fb4d4 There seems to be no good reason for sfbp(4) to be commented out here, and its
state is breaking alpha builds.  I'll uncomment it and see what breaks.
2006-08-17 22:19:13 +00:00
he
f4ad138e01 Make this build again without OBOE_DEBUG defined (get rid of warnings
about unused variables).
2006-08-17 22:14:38 +00:00
christos
11f7a16891 the kernels Arnaud and I used to fix the debugging options. 2006-08-17 19:56:14 +00:00
christos
35ca6c8b5b Fix all the -D*DEBUG* code that it was rotting away and did not even compile.
Mostly from Arnaud Lacombe, many thanks!
2006-08-17 17:11:27 +00:00
gdamore
0d7e99a27a Initial import of radeonfb. Works to some degree on at least some hardware.
Most of the testing was done on MIPS hardware -- it probably needs work before
it will be useful with x86 hardware, and it is probably incompatible with
the X11 server.

"ATI Technologies Inc. ("ATI") has not assisted in the creation of, and
does not endorse, this software.  ATI will not be responsible or liable
for any actual or alleged damage or loss caused by or in connection with
the use of or reliance on this software."

Enjoy!
2006-08-16 22:46:44 +00:00
bjh21
64e85b48bf Fix an obvious typo. 2006-08-16 22:09:12 +00:00