summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Kill initialisation and shadow warnings. Half-hearted cleanup (e.g. only thejmallett2003-01-191-20/+21
| | | | | | | more important ones) of format warnings. XXX Lots of this assumes int32 can be printed with %d. Yuck. Reviewed by: bde
* #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.
* Add support to marshal a filesystem to a newfs(8) command that could be usedjmallett2003-01-192-18/+94
| | | | | | to create it. A small number of options are not marshalled as they are things it would be dumb to spit out, as they are used by internal computations, and newfs may change them, or they may not be directly apparent.
* 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-195-180/+162
| | | | | | | | | | | | | | | <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.
* Let libufs handle all the work with regard to going through a list of cgs, now.jmallett2003-01-191-8/+7
|
* Store not only the current cylinder group in the series (i.e. next that needsjmallett2003-01-193-0/+3
| | | | | to be read in) but also the last cylinder group in the series (i.e. what is stored in the structure).
* 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>
* Use checksum-recursive rather than fetch-recursive-list in PREFETCHDISTFILESobrien2003-01-191-1/+1
| | | | | | | | so as to catch errors ASAP rather than later between the ports cvs checkout and docs cvs checkout. If a distfile doesn't checksum OK, it is very hard to restart the release with "make rerelease" as that target assumes all the cvs checkout's happened OK, and if that is not the case the cvs update that is attempted fails..
* Add (unsigned char) cast to ctype macrosache2003-01-191-13/+31
| | | | Handle NULL return from malloc and strdup
* 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/.
* Make xl sparc64 too.jake2003-01-192-2/+2
|
* Kill whitespace at EOL.mtm2003-01-191-1/+1
| | | | | Approved by: markm (mentor) Noticed by: ru
* Don't crash when utilities are dumb and try to read less than the disk blockjmallett2003-01-191-1/+1
| | | | | size (dumpfs may try to read the cylinder size (or is is sector size?) by way of bread). Prevents a bounds error.
* Use libufs to read one cylinder group from the disk at a time.jmallett2003-01-191-7/+2
|
* Add facility to read one, or a string of, cylinger groups.jmallett2003-01-194-1/+87
|
* Sync with NetBSD -- sl_add() now returns an int.obrien2003-01-193-10/+24
|
* Simplify the main function now that libufs will hunt for the disk for us.jmallett2003-01-191-13/+7
|
* Hunt for a disk to operate on, if we're passed a partition mountpoint, etc.jmallett2003-01-192-2/+41
| | | | Concept reviewed by: phk
* Fix comment about what we do when there are no listeners.imp2003-01-191-13/+3
|
* Per-variable\ entry headers, to allow the 'ps -otime -otime=FOO' or similarjmallett2003-01-194-11/+19
| | | | | case to do the right thing and affect exactly one column. This is consistent with GNU ps(1) in BSD mode, and POLA.
* 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
* When inserting a non-user-specified (e.g. not via -o or -O) format, don't dupejmallett2003-01-193-16/+39
| | | | | | | | one that is already there. This is consistent with GNU ps(1)'s BSD mode, and POLA. Reported by: Andy Farkas <andyf@speednet.com.au> Tested by: Andy Farkas <andyf@speednet.com.au>
* Use __FBSDID.obrien2003-01-1928-42/+66
|
* Protect against multiple inclusions.obrien2003-01-181-0/+5
|
* We don't need our own personal definition of __CONCAT.obrien2003-01-181-4/+1
|
* Simplify the Makefile by just using our standard PROG variable.obrien2003-01-181-9/+8
|
* Note that Wisecom's PCI adapter works.tom2003-01-181-0/+1
|
* 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>
* Add a missing wordue2003-01-181-4/+4
|
* Document lock order reversals possible when calling allocation functionsalfred2003-01-182-14/+28
| | | | | | | | | | | with vnode interlocks held. Emphasize that users need to be careful with malloc flags versus mbuf flags. Remove stale portion in vnode.9 about v_tag. We don't have it anylonger. Submitted by: Hiten Pandya <hiten@unixdaemons.com>
* 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.
* Allow French releases notes to be build correctlygioria2003-01-183-3/+3
| | | | Hat To: Hiroki SATO <hrs@eos.ocn.ne.jp>
* MFbed: translation updates and fixesue2003-01-182-5/+11
| | | | | early-adopter/article.sgml: fixes only errata/article.sgml: 1.17 -> 1.18
* Inline now trivial functions getccdbuf() and putccdbuf().phk2003-01-182-106/+16
| | | | Fix another trivial memory-leak.
* Don't truncate lines if an error occurred.des2003-01-181-13/+18
|
* Indentation cleanup.des2003-01-181-5/+6
|
* Removed unnecessary includes and brought up to date with atagrehan2003-01-181-4/+15
| | | | common code by adding lock functions.
OpenPOWER on IntegriCloud