aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Put on my asbestos underwear and commit the patch that I posted to -archPeter Wemm1999-12-061-3/+36
| | | | | | | | | | | | some time ago that changes kern.randompid from a boolean to a randomness range for the next pid assigment. Too high causes a lot of extra work to scan for free pids, and too low merely wastes randomness entropy. It's still possible to select a completely random range by using PID_MAX (100k) or -1 as a shortcut to mean "the whole range". Also, don't waste randomness when doing a wraparound. Notes: svn path=/head/; revision=54203
* Remove DSO_BAD144 from wd driver(s) so people with bad144'ed disks getPoul-Henning Kamp1999-12-062-2/+2
| | | | | | | a bit of warning. Notes: svn path=/head/; revision=54202
* Add defines for additional EEPROM locations and register definitions.Matthew N. Dodd1999-12-061-2/+28
| | | | Notes: svn path=/head/; revision=54201
* Whitespace cleanups.Matthew N. Dodd1999-12-061-4/+4
| | | | Notes: svn path=/head/; revision=54200
* Add a delay (per the databook) to the get_eeprom_data() loop soMatthew N. Dodd1999-12-061-9/+12
| | | | | | | | | | that the read EEPROM command has time to execute. I didn't observe any difference in behavior on my test system but this is the documented "correct behavior". Notes: svn path=/head/; revision=54198
* Standardize device descriptions so that there is parity between PnPMatthew N. Dodd1999-12-061-10/+10
| | | | | | | descriptions and non-PnP descriptions. Notes: svn path=/head/; revision=54197
* Correctly implement the non-PnP enumeration of ISA board.Matthew N. Dodd1999-12-061-14/+36
| | | | | | | | | | | | | | | | | | We now correctly skip boards that have PnP support enabled, or are in test mode. The 3c509s support a number of combinations of device probing, as per the databook. - ISA only - PnP only - ISA or PnP We will allow cards that can be dealt with by PnP to be attached by the PnP enumerator. This fixes the bogus detection of boards at weird ioports. Notes: svn path=/head/; revision=54196
* Add a truely evil workaround (hack!) for some unfortunate BIOSPeter Wemm1999-12-062-12/+46
| | | | | | | | | | | | | | programming practices. It seems that newer fdc chips have an alternative way of setting the transfer speed (including high speed modes for floppy tape) that doesn't use the control register (which we don't support - we use the old way only). So, they (the BIOS programmers) sometimes leave out the 0x3f6 control register from the PnP ports descriptor(!!). "Hey, it works with windows, so what's the problem?" :-( Anyway, this hack tries to compensate for that. This was discussed with dfr (who did the pnp attachment). Notes: svn path=/head/; revision=54195
* Use bus_get_resource() instead of bus_get_resource_start() as the latterPeter Wemm1999-12-062-34/+48
| | | | | | | | | | | | returns "0" on failure, which is indistinguishable from (say) irq 0. This should stop a couple of stray messages that turn up. Also, if a BUS_SETUP_INTR() fails with INTR_TYPE_FAST, try falling back to a normal interrupt. This might help pccard folks with a shared slot interrupt. This whole thing needs to be revisited. Notes: svn path=/head/; revision=54194
* Make this compile again after the device_add_child change.Warner Losh1999-12-061-1/+1
| | | | Notes: svn path=/head/; revision=54193
* Need header <machine/smp.h> for prototype declaration of smp_rendezvous()Luoqi Chen1999-12-062-0/+6
| | | | | | | in my previous commit. Notes: svn path=/head/; revision=54192
* User ldt sharing.Luoqi Chen1999-12-0620-291/+477
| | | | Notes: svn path=/head/; revision=54188
* Fix mouse cursor logic which I broke in 1.1 ;-<Kazutaka YOKOTA1999-12-061-26/+30
| | | | | | | Reported by: Christian Weisgerber <naddy@unix-ag.uni-kl.de> Notes: svn path=/head/; revision=54182
* Remove unused junk: next fields and list head. Likely not completelyWarner Losh1999-12-062-20/+1
| | | | | | | | needed on software reaching EOL, but I'd have caught the hang bug sooner had I done this earlier. Notes: svn path=/head/; revision=54179
* Remove joystick references from pc98 version of isa_compat.h too.Bill Paul1999-12-061-5/+0
| | | | Notes: svn path=/head/; revision=54176
* Miscellaneous fixes/cleanups relating to ipfw and divert(4):Archie Cobbs1999-12-066-192/+235
| | | | | | | | | | | | | | | | - Implement 'ipfw tee' (finally) - Divert packets by calling new function divert_packet() directly instead of going through protosw[]. - Replace kludgey global variable 'ip_divert_port' with a function parameter to divert_packet() - Replace kludgey global variable 'frag_divert_port' with a function parameter to ip_reass() - style(9) fixes Reviewed by: julian, green Notes: svn path=/head/; revision=54175
* Supported i8251 (internal COM1) FIFO mode.Yoshihiro Takahashi1999-12-063-114/+460
| | | | | | | Submitted by: tanimura and nyan Notes: svn path=/head/; revision=54174
* Sorted SUBDIR.Bruce Evans1999-12-051-4/+3
| | | | Notes: svn path=/head/; revision=54173
* Remove references to old joystick driver from this file, which PeterBill Paul1999-12-051-5/+0
| | | | | | | | | | | | forgot to do when he converted it to newbus. Note: make *sure* to remove any old joy.o object files from your kernel build directories in order to be sure the joy driver is properly recompiled. Noticed by: phk Notes: svn path=/head/; revision=54170
* Update to reflect removed of al, ax, dm, pn and mx drivers and additionBill Paul1999-12-052-10/+2
| | | | | | | of dc driver. Notes: svn path=/head/; revision=54168
* conditionalise some warning messagesCameron Grant1999-12-051-11/+12
| | | | | | | Submitted by: Vladimir N.Silyaev <vns@delta.odessa.ua> Notes: svn path=/head/; revision=54165
* Modify the Adaptec "starfire" driver to reset the PHY on the MII busBill Paul1999-12-054-22/+94
| | | | | | | | | | | | | | | | | | | | | before selecting a mode. The Seeq PHY chips on the Adaptec cards that use the AIC-6915 controller seem to need it in order to get them to change modes correctly. This corrects a problem that I noticed where my ANA-62022 board failed to correctly program the full duplex bit in the macconfig1 register when the interface was brought up. Running ifconfig sf0 would mask this problem in some cases because polling the PHY status would cause the miibus code to notice that full duplex was now needed and the statchg callback would be invoked to configure the duplex setting. However it would still get it wrong other times. Also changed sf_miibus_statchg() to program the IPG register to match the duplex setting in accordance with Adaptec manual's recommendations (0x15 for full duplex, 0x11 for half duplex). Notes: svn path=/head/; revision=54161
* Switch over to using the generic joy driverPeter Wemm1999-12-056-310/+34
| | | | Notes: svn path=/head/; revision=54160
* newbusify and port the joy driver to the Alpha. It now attaches to thePeter Wemm1999-12-052-268/+252
| | | | | | | | | | | joystick port on PnP sound cards that have a suitable device ID on them. Doug Rabson added timer code so it didn't have to beat on the isa timer. Submitted by: Takanori Watanabe <takawata@shidahara1.planet.sci.kobe-u.ac.jp> Notes: svn path=/head/; revision=54156
* fix dma underrun issuesCameron Grant1999-12-056-90/+155
| | | | | | | | | | | | mutate some panics to kasserts add more spl protection PR: kern/14990 Partially Submitted by: Vladimir N.Silyaev <vns@delta.odessa.ua> Reviewed by: dfr Notes: svn path=/head/; revision=54155
* Raise the pci compat driver match priority a bit so that it's notPeter Wemm1999-12-052-2/+2
| | | | | | | quite so close to the chip* drivers. Notes: svn path=/head/; revision=54153
* Fix LINT breakage.Archie Cobbs1999-12-052-2/+2
| | | | Notes: svn path=/head/; revision=54152
* Lower (a lot!) the chip* probe so it doesn't steal the pci ID fromPeter Wemm1999-12-051-2/+2
| | | | | | | ide_pci which still uses the pci driver compat shims. Notes: svn path=/head/; revision=54151
* Don't use a bogus bus number for Ross host-pci bridges.Doug Rabson1999-12-056-0/+12
| | | | | | | | PR: kern/15278 Submitted by: Ahmed Benani <ahmed_benani@urbanet.ch> Notes: svn path=/head/; revision=54150
* Fix cursor position calculation.Kazutaka YOKOTA1999-12-051-1/+2
| | | | | | | Submitted by: Cejka Rudolf <cejkar@dcse.fee.vutbr.cz> Notes: svn path=/head/; revision=54144
* Reinstate the aic driver.Luoqi Chen1999-12-052-0/+2
| | | | | | | PR: conf/15187 Notes: svn path=/head/; revision=54141
* Add pci_if.h to SRCS so that dcphy will build.Bill Paul1999-12-051-1/+1
| | | | Notes: svn path=/head/; revision=54140
* Disconnect and tagged queueing now really work. Also fix a bug that'sLuoqi Chen1999-12-043-101/+115
| | | | | | | causing problems to slow devices. Notes: svn path=/head/; revision=54136
* Grrrr. I knew I forgot something. Remove mxphy, add dcphy and pnphy.Bill Paul1999-12-041-1/+2
| | | | Notes: svn path=/head/; revision=54135
* Add the if_dc driver and remove all of the al, ax, dm, pn and mx driversBill Paul1999-12-0436-13130/+8505
| | | | | | | | | | | which it replaces. The new driver supports all of the chips supported by the ones it replaces, as well as many DEC/Intel 21143 10/100 cards. This also completes my quest to convert things to miibus and add Alpha support. Notes: svn path=/head/; revision=54134
* The address 0x472 is used for the SCSI HDD geometry information onKATO Takenori1999-12-043-6/+3
| | | | | | | PC-98. Therefore, the PC-98 kernel should not modify it. Notes: svn path=/head/; revision=54128
* Sync with sys/i386/i386/machdep.c revision up to 1.381.Yoshihiro Takahashi1999-12-042-6/+6
| | | | Notes: svn path=/head/; revision=54124
* Bump the version number now that the Linuxulator has pluggable ioctlMarcel Moolenaar1999-12-041-1/+1
| | | | | | | handlers. Notes: svn path=/head/; revision=54123
* Implement pluggable ioctl handlers.Marcel Moolenaar1999-12-0412-3466/+4486
| | | | | | | | | | | | | | | | | | | | | | | | | | | Other modules can register and unregister ioctl handlers to extend the ioctls known by the Linuxulator. A recent application is the vmware port. The Linuxulator itself uses the new interface to register its handlers as well. Handlers for the following types of ioctls have been defined: cdrom console (=keyboard and VT handling) socket sound termio All ioctl related defines and declarations have been moved to a new file (linux_ioctl.h), except for the pluggable ioctl handler interface definition. While there, cleanup linux.h some more. linux.h and linux_ioctl.[ch] have been made to conform to style(9) as much as possible. Inspired and reviewed by: Vladimir N. Silyaev Notes: svn path=/head/; revision=54122
* oszsigcode -> szosigcodeMarcel Moolenaar1999-12-048-11/+11
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=54121
* Fix type of sf_addr.Marcel Moolenaar1999-12-044-8/+8
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=54120
* Add the logical ID of ViBRA16CL PNP on Micron Millenium II motherboards.Seigo Tanimura1999-12-041-0/+1
| | | | | | | | PR: kern/15243 Submitted by: Steven G. Kargl <kargl@troutmask.apl.washington.edu> Notes: svn path=/head/; revision=54119
* Call ISA_PNP_PROBE() to probe PnP cards, rather than matchSeigo Tanimura1999-12-041-119/+59
| | | | | | | | | | the vendor and logical IDs directly. Submitted by: peter Tested by: Timo Geusch <freebsd@timog.prestel.co.uk> Notes: svn path=/head/; revision=54118
* forgot .CURDIRJulian Elischer1999-12-041-1/+1
| | | | | | | caught by Steven G. Kargl <kargl@troutmask.apl.washington.edu> Notes: svn path=/head/; revision=54115
* Add back in a prefatory TUR when the tape is *not* mounted. This seemsMatt Jacob1999-12-041-0/+5
| | | | | | | to help with some older tape drives. Notes: svn path=/head/; revision=54105
* Correct some botched timeout defines. Allocate only 8KB for the test readMatt Jacob1999-12-031-97/+74
| | | | | | | | | in samount. Make things a lot quieter in samount (and other places). Fix ridiculous and not so ridiculous bugs in compression related code in both sagetparams and sasetparams. Notes: svn path=/head/; revision=54099
* New netgraph node type, ng_bpf(8). This node type allows you toArchie Cobbs1999-12-0311-5/+918
| | | | | | | apply bpf(4) filters to data travelling through a netgraph network. Notes: svn path=/head/; revision=54097
* Add a new function ng_findhook() for finding a node's hook;Archie Cobbs1999-12-032-14/+26
| | | | | | | | | | if the node type provides a more efficient implementation than the normal linear scan, use it. Reviewed by: julian Notes: svn path=/head/; revision=54096
* Merged NetBSD version, as they have done improvements:Semen Ustimenko1999-12-0325-2061/+2222
| | | | | | | | | | | | | | 1. ntfs_read*attr*() functions now accept uio structure to eliminate one data copying. 2. found and removed deadlock caused by 6 concurent ls -lR. 3. started implementation of nromal Unicode<->unix recodeing. Obtained from: NetBSD Notes: svn path=/head/; revision=54095
* Fix bug parsing 32 bit integers on machines where sizeof(long) == 4.Archie Cobbs1999-12-031-1/+2
| | | | Notes: svn path=/head/; revision=54094