summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Change BUS_SPACE_UNRESTRICTED (~0ul) to plain ~0 when used in themike2003-01-191-1/+1
| | | | | | | 'int nsegments' argument to bus_dma_tag_create(). ~0ul does not fit in an int on machines with 64 bit longs. Noticed by: alpha tinderbox
* Finally give CCD the disk mini-layer treatment:phk2003-01-193-863/+288
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CAUTION: Previously CCD would be different from all other disks in the system in that there were no "ccd0" device, only a "ccd0c" device. This is no longer so after this commit. If you access a ccd device through the "/dev/ccd0c" device _and_ have not actually put a BSD disklabel on the device, you will have to use the name "/dev/ccd0". If your CCD device contains a BSD disklabel there should be no difference. You need to recompile ccdconfig(8) using the changed src/sys/sys/ccdvar.h for the -g "show me" option to work. I have run the regression test I created before I started overhauling CCD and it flags no problems, but this code is mildly evil, so take care. If you would cry if you lost what's on CCD, make a back before you upgrade. Create separate cdevsw for the /dev/ccd.ctl device. Remove the cloning function, the disk-minilayer will do all naming for us. Remove the ccdunit and ccdpart functions and carry the softc pointer in the relevant dev_t's and structures. Release all memory when a CCD device is unconfigured, previously the softc would linger behind. Remove all traces of BSD disklabel fiddling code. Remove ccdpsize, the disk mini-layer does this for us. Don't allocate memory with M_WAITOK in ccdstrategy(). Remove boundary checks which the disk mini-layer does for us. Don't allocate space for more than 2 ccdbuf, RAID was never implemented. NB: I have not tried to address any of the preexisting ailments of CCD.
* Unifdef -UDEBUG on the CCD driver. The debugging is mostly uselessphk2003-01-192-290/+0
| | | | | | | | and can be added back selectively, should anybody start to interest themselves for the internal workings of ccd. This commit will make the diffs for the following commits much more readable.
* Add support for the ServerWorks CSB6.sos2003-01-192-1/+12
| | | | The support for the 3'rd channel is only experimental.
* #ifdef NO_GEOM these files entirely. When NO_GEOM is removed as anphk2003-01-193-0/+6
| | | | option the files can be removed.
* Remove the last stray NO_GEOM option in our example kernel config files.phk2003-01-191-2/+0
|
* Fix the 48bit access support for the older Promise 66/100 controllers, thesos2003-01-194-16/+26
| | | | | | first attempt was wrong and could cause r/w timeouts. Add yet another Promise PCI id.
* Remove unnecessary locking of Giant around nanotime() in clock_gettime().tjr2003-01-191-2/+0
|
* Mark more code #ifdef NODEVFSphk2003-01-191-1/+6
|
* Originally when DEVFS was added, a global variable "devfs_present"phk2003-01-199-48/+45
| | | | | | | | | | | | was used to control code which were conditional on DEVFS' precense since this avoided the need for large-scale source pollution with #include "opt_geom.h" Now that we approach making DEVFS standard, replace these tests with an #ifdef to facilitate mechanical removal once DEVFS becomes non-optional. No functional change by this commit.
* When we use DEVFS, we don't need the /dev/tty pseudo-driver to dophk2003-01-191-0/+89
| | | | | | | | | | | | more than return ENXIO from its open routine, so most of this file is unneeded. A straight #ifdef'ing would look quite messy, and make the file quite unreadable, so instead I have simply added the DEVFS version of the file at the top, protected by #ifndef NODEVFS. Once we have removed NODEVFS option, we can retain 86 the 86 lines at the top and drop the other 287 lines.
* Move NODEVFS and NO_GEOM to opt_global.h.phk2003-01-191-2/+2
| | | | | | | | This allows me to mark code which they control with #ifdef without polluting files with #includes of opt_devfs.h and opt_geom.h. Once these two options are removed, this will allow mechanical removal of the bits their removal makes obsolete.
* fix ioctl handling for setting wep keyssam2003-01-191-4/+6
|
* useracc() is mpsafe so we only need to hold Giantalfred2003-01-191-10/+5
| | | | | | over the call to nanosleep1() Pointed out by: tjr
* o Move the contents of <machine/floatingpoint.h> over tomarcel2003-01-194-176/+160
| | | | | | | | | | | | | | | <machine/ieeefp.h> where it belongs. o Remove the i386 specific inclusion of <machine/floatingpoint.h> from <ieeefp.h>, now that including <machine/ieeefp.h> is enough for all architectures. o Allow <machine/ieeefp.h> to inline the functions exposed by the headers by checking for _IEEEFP_INLINED_ in the MI header. When defined, prototypes are not given and it is assumed that the MD headers, when inlining only a subset of the functions provide prototypes for the functions not being inlined. Based on patch from: Terry Lambert <tlambert2@mindspring.com> Tested with: make release.
* Complete the support of the on-board xl(4) on nVidia nForce2 mobo's.obrien2003-01-191-0/+3
| | | | Submitted by: Mikko S. Hyvarinen <morphy@morphy.iki.fi>
* Remove miidevs.h and generate it from miidevs at compile time.obrien2003-01-1932-403/+53
| | | | The devlist2h.awk tool to do this has been repocopied to sys/tools/.
* Fix comment about what we do when there are no listeners.imp2003-01-191-13/+3
|
* Make the xl driver work on sparc64:tmm2003-01-192-67/+100
| | | | | | | | | | | | | | | | - Add conversions to/from little endian for fields that the NIC accesses by DMA as required. - Add some bus_dmamap_sync() calls, and correct some existing ones. - Read the receiver information from the EEPROM in an endian-neutral manner. - Load all RX and TX descriptors in a single DMA map up front, and get the bus addresses of individual descriptors by address arithmetic; this fixes multiple use of the descriptor tags, which would have undesired effects. It seems that xl still does not work on e250 boxen, for reasons which are not clear yet. Reviewed by: mux
* Protect against multiple inclusions.obrien2003-01-181-0/+5
|
* Simplify the Makefile by just using our standard PROG variable.obrien2003-01-181-9/+8
|
* Rev 1.16 renamed VM_METER to VM_TOTAL. This is breaking 3rd-party apps.obrien2003-01-181-0/+1
| | | | | | So add a VM_METER compat define. Submitted by: Andy Fawcett <andy@athame.co.uk>
* Optimize away call to bzero() in the common case by directly checkinghsu2003-01-181-6/+3
| | | | if a connection has any cached TAO information.
* Don't try to free() map in bus_dmamap_destroy() when it'smux2003-01-181-1/+1
| | | | | set to &nobounce_dmamap. A similar bug was fixed by wpaul in revision 1.19 of sys/alpha/alpha/busdma_machdep.c.
* Inline now trivial functions getccdbuf() and putccdbuf().phk2003-01-182-106/+16
| | | | Fix another trivial memory-leak.
* Removed unnecessary includes and brought up to date with atagrehan2003-01-181-4/+15
| | | | common code by adding lock functions.
* Fix minor memory-leak.phk2003-01-182-0/+2
|
* Stub profile.h, required for userland builds.grehan2003-01-181-0/+65
| | | | Approved by: Benno
* <machine/ieee.h>, taken from sparc64grehan2003-01-181-0/+146
| | | | Approved by: Benno
* Fix bugs with operand ordering and unnecessary sync/eieio ops. Mostlygrehan2003-01-181-59/+71
| | | | | | obtained from Alpha atomic.h Approved by: Benno
* Allow the MD frame definition to be seen in. Required for truss/ptrace.grehan2003-01-181-3/+1
| | | | Approved by: Benno
* RAIDframe requires LONG_BITgrehan2003-01-182-0/+6
| | | | Approved by: Benno
* Prepended underscores to macro local vars, avoiding gcc "declarationgrehan2003-01-181-6/+6
| | | | | | shadows global" warning Approved by: benno
* Change definition of int64 to avoid gcc3.2.1 complaints. Taken from i386grehan2003-01-181-2/+13
| | | | Approved by: benno
* Use the M_CCD malloc bucket instead of M_DEVBUF.phk2003-01-182-82/+50
| | | | Don't keep a private freelist of a low number of trivially small structures.
* Inline trivial function ccdintr() into its one caller ccdiodone().phk2003-01-182-42/+18
| | | | Only call ccdfind() once in ccdiodone() and cache the result.
* Sanitize the copyright section a bit: We do not need two copies of thephk2003-01-182-102/+34
| | | | four-clause BSD license in the file, one will do.
* Remove unneeded entries.nyan2003-01-182-38/+0
|
* Fixed comment.nyan2003-01-181-2/+2
|
* - Removed unecesary code.mdodd2003-01-186-110/+96
| | | | | - Correct smapi32_new() asm (still doesn't work.) - Attach to mainboard not isa.
* MFp4: Add support for memory mapped UARTs, but don't add any devicesmarcel2003-01-182-9/+18
| | | | | | | yet that depend on it because sio(4) needs support for it before it can be used. There's no reason why zs(4) couldn't attach to puc(4) in the (near?) future (in principle), so don't make memory mapped I/O support in sio(4) a precondition for this change.
* Add BUFFALO LPC-CF-CLT(10Base-T Compact Flash Ether Card).shiba2003-01-182-0/+3
|
* Regen.shiba2003-01-181-1/+4
|
* Add Accton EN2216.shiba2003-01-182-0/+2
|
* Regen.shiba2003-01-181-0/+3
|
* Fix long-standing bug predating FreeBSD where calling connect() twicehsu2003-01-181-1/+3
| | | | on a raw ip socket will crash the system with a null-dereference.
* Fake up a struct componentname to pass to VOP_WHITEOUT instead of passingtjr2003-01-181-1/+10
| | | | | | NULL. union_whiteout() expects the componentname argument to be non-NULL. Fixes a NULL dereference panic when an existing union mount becomes the upper layer of a new union mount.
* Remove subr_diskslice.c and subr_diskmbr.c which I can see no traces offphk2003-01-171-2/+0
| | | | a need for in the x86_64 files. Not compile tested.
* Remove subr_diskslice.c and subr_diskmbr.c which I can find no trace ofphk2003-01-171-2/+0
| | | | why should be needed in the powerpc files. Not compile tested.
* - Style fixes.mdodd2003-01-171-3/+3
| | | | | | - llabs() -> qabs(); long long isn't valid for the kernel. Submitted by: bde
OpenPOWER on IntegriCloud