summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* This is a major rework of the ATA driver (ATAng)sos2003-08-2429-3934/+3563
| | | | | | | | | | | | | | | | | | | | | | Restructure the way ATA/ATAPI commands are processed, use a common ata_request structure for both. This centralises the way requests are handled so locking is much easier to handle. The driver is now layered much more cleanly to seperate the lowlevel HW access so it can be tailored to specific controllers without touching the upper layers. This is needed to support some of the newer semi-intelligent ATA controllers showing up. The top level drivers (disk, ATAPI devices) are more or less still the same with just corrections to use the new interface. Pull ATA out from under Gaint now that locking can be done in a sane way. Add support for a the National Geode SC1100. Thanks to Soekris engineering for sponsoring a Soekris 4801 to make this support. Fixed alot of small bugs in the chipset code for various chips now we are around in that corner anyways.
* Remove redundant bzero.hsu2003-08-241-1/+0
| | | | Submitted by: Pavlin Radoslavov <pavlin@icir.org>
* Eliminate the last (direct) uses of vm_page_lookup() on the pte object.alc2003-08-241-18/+3
|
* Allow bus barrier operations on fake tags. The purpose of a fakemarcel2003-08-241-4/+4
| | | | | | | | | | bus tag is to allow bus space accesses prior to having newbus fully initialized, such as would be the case for console drivers. Since barriers are a fundamental part of bus space accesses, not allowing them on fake tags would defeat the purpose of these tags. We use the barrier function normally associated with nexus. This is the barrier used when subordinates haven't defined a barrier themselves.
* Enhance the jail start/stop script.mtm2003-08-242-15/+124
| | | | | | | | | | | | | | | | | | | | o The following additional configuration attributes of a jail can be controlled from rc.conf: - mounting devfs(5) - mounting fdescfs(5) - mounting procfs(5) - custom devfs(8) ruleset If no ruleset is specified, the default jail ruleset is used. o The output of executing /etc/rc in the jail is now redirected to /dev/null. Instead, the hostname of the jail is echoed if the jail(8) command exited successfully. If the output is wanted it can probably be redirected to a file (/var/run/$jail maybe) instead of /dev/null. Submitted by: Scot W. Hetzel <hetzels@westbend.net> with modifications by Jens Rehsack <rehsack@liwing.de> and me.
* reenable the caches when a PCI peek faults. Takes my kernel compilejmg2003-08-242-0/+6
| | | | | | from 3770 real down to 1250 real. Submitted by: jake
* Check in the known good version of the wi driver, with prism/symbolimp2003-08-246-0/+3715
| | | | | | | | | | | | | | | | | | | | | | | support stripped out and minimally renamed to owi. This driver attaches to lucent cards only. This is designed to aid in the testing of fixes to the wi driver for lucent cards. It is supported only as a module (you cannot compile it into your kernel). You cannot have the wi driver in your kernel (or loaded as a moudle) to use the owi module. I've not connected it to build, as this module is currently for debugging purposes. This is for developers only at the present time. If we can't get lucent support fixed by 5.2 code freeze, then we'll re-evaulate this support level. Please use this to fix the lucent support in dev/wi. This will be removed from the system when lucent support has been fixed in dev/wi. Note to developers: Do not connect this to the build, make it possible to build into the kernel or otherwise 'integrate' this into system without checking with me first. This is for debugging purposes only. If this doesn't work for you, I don't want to hear about it unless you are fixing the wi driver :-)
* This doesn't work, so back them out.imp2003-08-241-2/+2
|
* - Add a font width field to struct scr_stat. Use this instead of '8'.jake2003-08-243-10/+12
| | | | | - Use the values in the video info for the font size and width instead of second guessing.
* Return -100 rather than 0 for pccard probe routines. This allowsimp2003-08-241-2/+2
| | | | other drivers to attach to these cards, if so desired.
* o Do not keep a separate list of src/etc/defaults files inmtm2003-08-242-7/+4
| | | | | | | | | | the src/etc makefile. This list was used to manually install the files from src/etc. Instead, simply change directory and 'make install'. o There is no reason for the files in src/etc/defaults to be installed as writeable. Reviewed by: ru
* Changed ??? to foo in dead code since ??? screws up my editor.jake2003-08-241-1/+1
|
* - Remember to flip the foreground and background color attributes injake2003-08-241-11/+18
| | | | | | | | | | | | | | gfb_draw if 'flip' is specified. This causes the mouse cut region to be displayed in reverse color so it is visbile. - Use the "other" implementation of gfb_cursor for the creator driver, which doesn't assume there is a hardware cursor. It seems that the hardware cursor that creator provides doesn't display the character under the cursor in reverse colors, so the driver does this manually and uses the hardware cursor for the mouse pointer (which it also works much better for). This is wedged here because it required less hoops than accessing the syscons vtb from inside the video driver, which is needed to read the character and color attributes under the new cursor position.
* Hook syscons and the creator driver up to the sparc64. This compiles butjake2003-08-242-0/+22
| | | | will not link due to missing keyboard drivers.
* Add a driver for creator upa frame buffers found in many sparc64 machines.jake2003-08-246-0/+13655
| | | | | | | | | | These are fixed resolution and operate only in pixel mode so they present a challenge to syscons (square peg, round hole, etc, etc). The driver provides a video driver interface for syscons and a separate character device for X to mmap. Wherever possible the creator's accelarated graphics functions are used so text mode is very fast. Based roughly on the openbsd driver.
* "md" files for syscons.jake2003-08-242-0/+161
|
* Add sparc64 ifdefs.jake2003-08-245-9/+41
|
* Fix endian bugs accessing ioctl arguments that are passed by value.jake2003-08-242-5/+5
|
* Add the bits for a LINT kernel. It has been verified to compile. Wemarcel2003-08-232-0/+51
| | | | may need to polish this.
* Rewrite the code that uses the try/catch paradigm implemented bymarcel2003-08-233-127/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | goto and abstracted by the itry, ithrow and icatch macros (among others). The problem with this code is that it doesn't compile on ia64. The compiler is sufficiently confused that it inserts a call to __ia64_save_stack_nonlock(). This is a magic function that saves enough of the stack to allow for non-local gotos, such as would be the case for nested functions. Since it's not a compiler defined function, it needs a runtime implementation. This we have not in a standalone compilation as is the kernel. There's no indication that the compiler is not confused on other platforms. It's likely that saving the stack in those cases is trivial enough that the compiler doesn't need to off-load the complexity to a runtime function. The code is believed to be correctly translated, but has not been tested. The overall structure remained the same, except that it's made explicit. The macros that implement the try/catch construct have been removed to avoid reintroduction of their use. It's not a good idea. In general the rewritten code is slightly more optimal in that it doesn't need as much stack space and generally is smaller in size. Found by: LINT
* When present use ogain instead of master for surround sound channels.orion2003-08-231-14/+14
| | | | | | The latter has lead to reports of broken audio. Do not swap ogain and master when headphones detected.
* fix short weekday names in zh_CN.*ache2003-08-232-14/+14
| | | | | PR: 55895 Submitted by: Kang Liu <liukang@bjpu.edu.cn>
* Held pages, just like wired pages, should not be added to the cache queues.alc2003-08-231-1/+2
| | | | Submitted by: tegge
* PCI header files live in dev/pci.mdodd2003-08-232-4/+4
|
* Hold the page queues lock when performing vm_page_clear_dirty() andalc2003-08-233-2/+7
| | | | vm_page_set_invalid().
* Report media status for bitrate PHYs.mdodd2003-08-231-0/+8
|
* AGP GART driver for NVIDIA nForce/nForce2 chipsets.mdodd2003-08-236-1/+935
|
* Even though this driver says it is broken, fix the location of the pciimp2003-08-231-2/+2
| | | | include files.
* dev/pci/meteor_reg.h doesn't exist. Revert this part of last commit.imp2003-08-231-1/+1
|
* Fix a logic error in osethostid() that was introduced in rev. 1.34:tjr2003-08-231-3/+4
| | | | | allow hostid to be set when suser() returns 0, not when it returns an error. This would have allowed non-root users to set the host ID.
* Remove the # ("stringify") operator from the printf() arguments intjr2003-08-231-1/+1
| | | | | | the iprintf macro. It was causing the actual format string and variable names to be written out, instead of substituting the values of the variables into the format string.
* When calculating the block size to use for a particular sample rate,iedowse2003-08-231-4/+6
| | | | | | | | | | | round the result up to a multiple of 4 bytes so that it will always be a multiple of the sample size. Also use the actual buffer size from sc->bufsz instead of the default DS1_BUFFSIZE. This fixes panics and bad distortion I have seen on Yamaha DS-1 hardware, mainly when playing certain Real Audio media. Reviewed by: orion (an earlier version of the patch)
* Fix an off-by-one error in feed_monotostereo16() that caused theiedowse2003-08-231-1/+1
| | | | | | | | first sample in the buffer to be ignored. The bug caused a repetitive glitch in one of the stereo channels when playing mono sound on configurations that use the monotostereo16 feeder. Reviewed by: orion
* In aic_reconnect()i, initialize scb. On ia64 the compiler warns aboutmarcel2003-08-231-0/+1
| | | | a possible uninitialized variable.
* o Explicitly cast the second argument to bus_space_set_region_#()marcel2003-08-231-9/+8
| | | | | | | | | | | to intptr_t. This fixes a compiler warning (integer from pointer without cast) in scvgarndr.c when SC_PIXEL_MODE is defined. o Define readb() and writeb(). Both are used in scvgarndr.c when, guess what, SC_PIXEL_MODE is defined. Both changes are ia64 specific. Found by: LINT
* On ia64 time_t is 64 bit. Explicitly cast tv_sec to long and changemarcel2003-08-231-2/+2
| | | | | | | the corresponding format specifier to %ld in a call to printf() in function softclock(). The printf() is conditional upon DIAGNOSTIC. Found by: LINT
* To implement the sequential access optimization, vm_fault() may need toalc2003-08-231-8/+10
| | | | | | | reacquire the "first" object's lock while a backing object's lock is held. Since this is a lock-order reversal, vm_fault() uses trylock to acquire the first object's lock, skipping the sequential access optimization in the unlikely event that the trylock fails.
* Also define VM_PAGE_BITS_ALL for 16K and 32K pages. Make the constantmarcel2003-08-231-5/+7
| | | | unsigned for all page sizes and unsigned long for 32K pages.
* s=gem/foo=dev/gem/foo=imp2003-08-231-2/+2
|
* Add support for 16K and 32K page sizes. The valid and dirty mapsmarcel2003-08-231-0/+6
| | | | | | in struct vm_page are defined as u_int for 16K pages and u_long for 32K pages, with the implied assumption that long will at least be 64 bits wide on platforms where we support 32K pages.
* MFi386: revisions 1.202 and 1.203.nyan2003-08-233-417/+9
|
* s#<mk48txx/mk48txxreg.h>#<dev/mk48txx/mk48txxreg.h>#marcel2003-08-235-5/+5
|
* s#<foo/bar.h>#<dev/foo/bar.h>#gmarcel2003-08-233-10/+10
|
* - i386 FPU emulation is removed on pc98.nyan2003-08-232-2/+2
| | | | - correct typo.
* Add compilation support for extfs on ia64, primarily to support LINT.marcel2003-08-235-12/+63
| | | | | The functions in ia64-bitops.h merely call panic() for now. They need to be implemented some day, just not today.
* Remove PAGE_SIZE_4K, PAGE_SIZE_8K and PAGE_SIZE_16K and replace themmarcel2003-08-231-16/+4
| | | | | with LOG2_PAGE_SIZE. A single option is better to LINT than multiple mutual exclusive ones.
* Picking PAGE_SHIFT as a global option is a bad idea. Instead call themarcel2003-08-231-1/+1
| | | | option LOG2_PAGE_SIZE.
* Remove PAGE_SIZE_4K, PAGE_SIZE_8K and PAGE_SIZE_16K and replacemarcel2003-08-231-3/+1
| | | | | them with PAGE_SHIFT. A single option is better to LINT than multiple mutual exclusive ones.
* Add rules for font.h and ukbdmap.h. Needed for LINT.marcel2003-08-231-0/+10
|
* Revert previous change for ncrreg.h. The header really lives inmarcel2003-08-231-1/+1
| | | | sys/pci.
OpenPOWER on IntegriCloud