summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Zap now-unused SHLIB_MINORpeter2002-09-281-1/+0
|
* Add a workaround for what seems to be confusion between binutils and thejake2002-09-274-8/+60
| | | | | | | | | | | sparc v9 ABI. The Elf_Rela records for local symbols appear to already have the symbol's value added in to the addend field, even though the ABI specifies we need to lookup the symbol and add its value too. This breaks text relocations in klds because the symbol's value is added twice, and the resulting address points off into nowhere land, so for now just use the addend. Tested by: rwatson
* Add a missing pair of curly braces to a conditional debuggibbs2002-09-271-2/+3
| | | | | statement. This ensures that debug code doesn't trigger if it isn't enabled. <blush>
* Add "missing scratch-pad register" to the first of the two portsphk2002-09-271-2/+2
| | | | | | on the Argosy SP-320 dual-port async PCcard. An amazing piece of hardware seen from an ISO9000 point of view.
* Add a field so we can specify flags per port to the underlying device driver.phk2002-09-272-0/+3
|
* Add yet a quick flag to sio: 0x100000 "Scratch pad register missing".phk2002-09-271-6/+5
| | | | | | | The advanced stage of computer assisted hardware design and verification is aptly illustrated by the fact that this is necessary because only the first ports in a single-chip, dual-port async PC-Card product lacks this register.
* Fix so it compiles with the new disklabel stuff.sos2002-09-271-5/+5
|
* Extensively rework the geom_bsd method, put a lot of comments in, bettingphk2002-09-271-104/+424
| | | | | | | | | | | | | | | | | | | | | | | | | | | | that this will make people use this for their future copy&paste operations. Rework the detection of raw-disk offsets in disklabels. This actually unearthed a number of bugs in the (now) previous version. Also accept labels which don't have a magic RAW_PART, provided they don't confuse us too much. Change the order of our sanity-checks on labels found on disks to be more robust. Check against MAXPARTITIONS in our sanity-check and reject disklabels we cannot cope with. Create new g_bsd_modify() function to implment disklabel modifying ioctls. Implement DIOCSDINFO and DIOCWDINFO with the provision that the latter still not writes your change back to disk. I didn't have the nerves for that yet. In the start routine, use g_call_me() for complex ioctls to prevent sleeping. Sponsored by: DARPA & NAI Labs.
* Add the new g_slice_config() call, which can add/delete/change a slice,phk2002-09-278-5/+84
| | | | | | | | | with support for trying, doing and forcing. This will eventually replace g_slice_addslice() which gets changed from grabbing topology to requing it in this commit as well. Sponsored by: DARPA & NAI Labs.
* Make the UP/DOWN threads hold on to their own private mutex while doingphk2002-09-271-2/+26
| | | | | | | | | | work. This prevents people from sleeping in the UP/DOWN I/O path by mistake or design (doing so almost invariably result in deadlocks since it stalls all I/O processing in the given direction. Sponsored by: DARPA & NAI Labs.
* Correctly en/decode MAXPARTITIONS partitions.phk2002-09-271-16/+8
| | | | Sponsored by: DARPA & NAI Labs.
* Setattr should not retry on EBUSY, we could get EBUSY back becausephk2002-09-271-14/+15
| | | | | | | | | | a disklabel modification tries to change an open device, and no counter-examples exists. Be less facist about when we can do Setattr, the openmodes of devices are so loosely managed that the "exclusive" count is almost useless. Sponsored by: DARPA & NAI Labs.
* Various no-ops:phk2002-09-274-11/+5
| | | | | | | | | | | Add a __unused. Make the 2byte decoder functions return 16 bits for the benefits of picky lints. No need to grab giant around a tsleep() when we have a timeout. Sponsored by: DARPA & NAI Labs.
* Correctly calculate size of PC98 slices.phk2002-09-271-1/+1
| | | | Sponsored by: DARPA & NAI Labs.
* Allocate bio's with M_NOWAIT and let the caller deal with the problems.phk2002-09-271-7/+9
| | | | Sponsored by: DARPA & NAI Labs.
* Add checks for g_clone_bio() returning NULL, it will be possible RSN.phk2002-09-272-1/+18
| | | | Sponsored by: DARPA & NAI Labs.
* Implement g_call_me() as a way for geom methods to schedule operationsphk2002-09-273-1/+36
| | | | | | | | | | | | | | | | to be performed in the event-thread. To do this, we need to lock the eventlist with g_eventlock (nee g_doorlock), since g_call_me() being called from the UP/DOWN paths will not be able to aquire g_topology_lock. This also means that for now these events are not referenced on any particular consumer/provider/geom. For UP/DOWN path use, this will not become a problem since the access() function will make sure we drain any bio's before we dismantle. Sponsored by: DARPA & NAI Labs.
* Ok, include also the two tests which actually does effect the claimsphk2002-09-271-0/+4
| | | | | | of the last commit message. Sponsored by: DARPA & NAI Labs.
* Hook into the shutdown EVENTHANDLER and stop tasting things after wephk2002-09-271-0/+16
| | | | | | get notified to make things settle a bit faster. Sponsored by: DARPA & NAI Labs.
* Rename the doorlock to eventlock, it gets to protect a bit more in the future.phk2002-09-271-6/+6
| | | | Sponsored by: DARPA & NAI Labs.
* Make it a tad easier to deal with struct inode in userland programs whichphk2002-09-271-1/+1
| | | | | | fondle /dev/kmem by using "struct cdev *" instead of "dev_t". Requsted by: jake
* Use our mount-credential if we get a NOCRED when we try to write out EAphk2002-09-271-0/+2
| | | | | | | | | space back to disk. This is wrong in many ways, but not as wrong as a panic. Pancied on: rwatson & jmallet Sponsored by: DARPA & NAI Labs.
* MFNetBSD: Increasre the reset recovery time. (rev 1.69)joe2002-09-271-3/+3
|
* MFNetBSD: Update class codes. (rev 1.68)joe2002-09-271-5/+13
|
* Add a D_NOGIANT flag which can be set in a struct cdevsw to indicatephk2002-09-273-13/+78
| | | | | | | | | | | | that a particular device driver is not Giant-challenged. SPECFS will DROP_GIANT() ... PICKUP_GIANT() around calls to the driver in question. Notice that the interrupt path is not affected by this! This does _NOT_ work for drivers accessed through cdevsw->d_strategy() ie drivers for disk(-like), some tapes, maybe others.
* MFNetBSD: Add Bluetooth related classes etc. (rev 1.67)joe2002-09-271-5/+12
|
* MFNetBSD: revision 1.66joe2002-09-271-6/+6
| | | | Get rid of trailing white space.
* Add the pst (Promise SX6000) driver to GENERIC.sos2002-09-272-0/+2
|
* Add the "Monitor" interface flag.phk2002-09-272-0/+8
| | | | | | | | | | Setting this flag on an ethernet interface blocks transmission of packets and discards incoming packets after BPF processing. This is useful if you want to monitor network trafic but not interact with the network in question. Sponsored by: http://www.babeltech.dk
* Rename struct specinfo to the more appropriate struct cdev.phk2002-09-277-21/+21
| | | | Agreed on: jake, rwatson, jhb
* Prepare for the uncoming import of the ServeRAID driverscottl2002-09-271-0/+2
|
* Redo how completing threads pass their state to userlandjulian2002-09-273-165/+245
| | | | | | | if they are not going to cross over themselves. Also change how the list of completed user threads is tracked and passed to the KSE. This is not a change in design but rather the implementation of what was originally envisionned.
* Remove redundant inclusion of inttypes.h in aicasm_gram.ygibbs2002-09-274-8/+7
| | | | | | and properly sort inttypes.h into list of includes. Noticed by: Mike Barcroft <mike@freebsd.org>
* Remove an errant debugging printf that got left in during my lastrwatson2002-09-271-1/+0
| | | | | | commit. Pointed out by: guido
* Upgrade to version 1.1 of the aic79xx U320 driver.gibbs2002-09-266-243/+335
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aic79xx.c: o Remove redundant ahd_update_modes() call. o Correct panic in diagnostic should state corruption cause the SCB Id to be invalid during a selection timeout. o Add workaround for missing BUSFREEREV feature in Rev A silicon. o Corect formatting nits. o Use register pretty printing in more places. o Save and restore our SCB pointer when updating the waiting queue list for an "expected" LQ-out busfree. o In ahd_clear_intstat, deal with the missing autoclear in the CLRLQO* registers. o BE fixup in a diagnostic printf. o Make sure that we are in the proper mode before disabling selections in ahd_update_pending_scbs. o Add more diagnostics. o task_attribute_nonpkt_tag -> task_attribute: we don't need a nonpkt_tag field anymore for allowing all 512 SCBs to be used in non-packetized connections. o Negotiate HOLD_MCS to U320 devices. o Add a few additional mode assertions. o Restore the chip mode after clearing out the qinfifo so that code using ahd_abort_scbs sees a consistent mode. o Simplify the DMA engine shutdown routine prior to performing a bus reset. o Perform the sequencer restart after a chip reset prior to setting up our timer to poll for the reset to be complete. On some OSes, the timer could actually pre-empt us and order is important here. o Have our "reset poller" set the expected mode since there is no guarantee of what mode will be in force when we are called from the OS timer. o Save and restore the SCB pointer in ahd_dump_card_state(). This routine must not modify card state. o Ditto for ahd_dump_scbs(). aic79xx.h: o Add a few more chip bug definitions. o Align our tag on a 32bit boundary. aic79xx.reg: aic79xx.seq: o Start work on removing workarounds for Rev B. o Use a special location in scratch from for stroring our SCBPTR during legacy FIFO allocations. This corrects problems in mixed packetized/non-packetized configurations where calling into a FIFO task corrupted our SCBPTR. o Don't rely on DMA priority to guarantee that all data in our FIFOs will flush prior to a command completion notification going out of the command channel. We've never seen this assumption fail, but better safe than sorry. o Deal with missing BUSFREEREV feature in H2A. o Simplify disconnect list code now that the list will always have only a single entry. o Implement the AHD_REG_SLOW_SETTLE_BUG workaround. o Swith to using "REG_ISR" for local mode scratch during our ISR. o Add a missing jmp to the data_group_dma_loop after our data pointers have been re-initialized by the kernel. o Correct test in the bitbucket code so that we actually wait for the bitbucket to complete before signaling the kernel of the overrun condition. o Reposition pkt_saveptrs to avoid a jmp instruction. o Update a comment to reflect that the code now waits for a FIFO to drain prior to issuing a CLRCHN. aic79xx_inline.h: o Remove unused untagged queue handling code. o Don't attempt to htole64 what could be a 32bit value. aic79xx_pci.c: o Set additional bug flags for rev A chips.
* Expand vendor ID.gibbs2002-09-261-1/+1
|
* Correct a spelling error.gibbs2002-09-261-2/+2
|
* Sync perforce IDs for changes first committed to FreeBSD and thengibbs2002-09-264-4/+4
| | | | to the Adaptec driver repository.
* Use inttypes.hgibbs2002-09-265-7/+26
| | | | | | Upgrade assembler to allow a move immediate of 0. This is helpful in certain macros where we can't know the value of the immediate in advance.
* Under DIAGNOSTIC, complain if ENOIOCTL leaks out through VOP_IOCTL().phk2002-09-261-0/+6
|
* Apparently pxeboot passes in a mygateway of non-zero sin lengthrwatson2002-09-261-1/+6
| | | | | | | | | | from DHCP in the event that no gateway is returned from DHCP, breaking the assumption that we skip the routing insertion of the gateway if the sin length is zero. Check also for s_addr of 0 to avoid the "Oh no, adding my default route failed" panic, making it possible to pxeboot machines on segments without default routes. Arguably this could be a bug in pxeboot, or in the TUNABLE code, but this makes my boxes boot.
* Argh, isa(4), eisa(4) and mca(4) now attach to legacy(4) instead ofjhb2002-09-263-4/+4
| | | | | | | nexus(4) in the case of machines w/o equivalent bridges on a PCI bus. Reported by: winter Pointy hat to: jhb
* Move the aac driver from MI to MD NOTES. It is a long way from beingscottl2002-09-262-6/+6
| | | | 64-bit clean.
* I hate it when patch gives me .rej files.phk2002-09-261-0/+1
| | | | | Can't we make the pre-commit check refuse if there are .rej files in the directory ?
* Remove NBBY and howmany() macros.mike2002-09-261-8/+0
|
* Make biowait() check bio_error before the BIO_ERROR flag, to properyphk2002-09-261-2/+2
| | | | | | catch internal GEOM use of bio_error. Sponsored by: DARPA & NAI Labs.
* Return ENOTTY on unhandled ioctls.phk2002-09-261-2/+5
|
* Return ENOTTY on unrecognized ioctls.phk2002-09-262-2/+2
|
* Return ENOTTY on incorrect ioctls.phk2002-09-261-1/+1
|
* Return ENOTTY when we don't recognize an ioctl.phk2002-09-261-1/+1
|
OpenPOWER on IntegriCloud