summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2001-02-15Import siop, a replacement for the ncr SCSI driver, from NetBSD.Kenneth R Westerback
Written for NetBSD by Manuel Bouyer. Tested with various cards on i386 and alpha. Outstanding issue: doesn't work with PowerPC yet.
2001-02-14another ne2k, from markus@Michael Shalayeff
2001-02-14regenMichael Shalayeff
2001-02-14another ne2k from markus@Michael Shalayeff
2001-02-14make sure we do not pass shared M_EXT mbuf. will avoidJun-ichiro itojun Hagino
possible shared mbuf overwrite if we use bridge/multicast/loopback/whatever. sync with kame
2001-02-14Change output to fit OpenBSD.Federico G. Schwindt
2001-02-14Theo keeps remembering me things I forgotten. Add pcscp(4) here as well.Federico G. Schwindt
2001-02-14Add pcscp(4) per theo request.Federico G. Schwindt
2001-02-14Add pcscp support.Federico G. Schwindt
2001-02-14sigh. add $OpenBSD$.Federico G. Schwindt
2001-02-14Support for AMD Am53c974 SCSI controllers; from NetBSD.Federico G. Schwindt
Thanks to Quentin Barnes <qbarnes@urbana.css.mot.com> for his help.
2001-02-13grr, pcvt ioctl support still requiredTheo de Raadt
2001-02-13More sane spl handling. Don't just assume that we're called at spl0.Artur Grabowski
2001-02-13No need to cast splx to (void).Artur Grabowski
2001-02-13Use MIN, not min when counting the pages we steal.Artur Grabowski
min is a function taking u_int arguments and we are counting signed longs here.
2001-02-13When detaching an interface set the if_start, if_ioctl and if_watchdogArtur Grabowski
functions to 'nops'. Some protocols might want to output some packets while detaching and that could be a bad idea when the interface has gone away. Do we need to change more functions?
2001-02-13rtc stops if we miss interrupts. Inspired by code from FreeBSD.Hakan Olsson
Some KNF. (niklas@ ok)
2001-02-13Bump maxusers to 32.Artur Grabowski
2001-02-13Cleanup.Artur Grabowski
2001-02-13default more wscons optionsTheo de Raadt
2001-02-13KNFTheo de Raadt
2001-02-13remove a file that should have been gone long ago.Eric Jackson
moved to dev/pci/tgareg.h
2001-02-12Eliminate ISP2100_FABRIC- we always allow for fabric now. Add anmjacob
isp_iid_set/isp_iid for fibre channel- this is because we now fake a port database entry for ourselves. Add the additional loop states between LOOP_PDB_RCVD and LOOP_READY. Change and comment on a wad of Fibre Channel isp_control functions. Change and comment on some of the ISPASYNC Fibre Channel events. Add was_fabric_dev/fabric_dev tags to our local FC database structure (so we can see rapidly whether something was a fabric device but is now gone). Add a tag which says what role this adapter should take. It can take on the value of None, Target, Initiator or Both. None is useful for warm failover purposes. Remove the ISP_CFG_NOINIT silliness since a role of "None" does this. Add a isp_lastmbxcmd tag to store the opcode for the last mailbox command used.
2001-02-12Put in offset definitions for FPM and FBM registers, plus just enoughmjacob
bits defined so we can reset them.
2001-02-12Add structure defining FC-AL position maps. The only tool that I know ofmjacob
that really uses this is luxadm(8) under Solaris.
2001-02-12Roll platform minor. Remove ISP2100_FABRIC defines (we don't caremjacob
anymore). Fix mailbox timeouts to correctly print out timing out command.
2001-02-12Change ISPASYNC_LOGGED_INOUT to ISPASYNC_PROMENADE.mjacob
Make sure we note if something is a fabric device. Use isp_fc_runstate instead of isp_control calls with ISPCTL_FCLINK_TEST and ISPCTL_PDB_SYNC.
2001-02-12Add isp_fc_runstate function- this function's purpose is to, in stages,mjacob
and depending on role, make sure link is up, scan the fabric (if we're connected to a fabric), scan the local loop (if appropriate), merge the results into the local port database then, check once again to make sure we have f/w at FW_READY state and the the loopstate is LOOP_READY.
2001-02-12Remove ISP2100_FABRIC defines- we always handle fabric now. Insertmjacob
isp_getmap helper function (for getting Loop Position map). Make sure we (for our own benefit) mark req_state_flags with RQSF_GOT_SENSE for Fibre Channel if we got sense data- the !*$)!*$)~*$)*$ Qlogic f/w doesn't do so. Add ISPCTL_SCAN_FABRIC, ISPCTL_SCAN_LOOP, ISPCTL_SEND_LIP, and ISPCTL_GET_POSMAP isp_control functions. Correctly send async notifications upstream for changes in the name server, changes in the port database, and f/w crashes. Correctly set topology when we get a ASYNC_PTPMODE event. Quite massively redo how we handle Loop events- we've now added several intermediate states between LOOP_PDB_RCVD and LOOP_READY. This allows us a lot finer control about how we scan fabric, whether we go further than scanning fabric, how we look at the local loop, and whether we merge entries at the level or not. This is the next to last step for moving managing loop state out of the core module entirely (whereupon loop && fabric events will simply freeze the command queue and a thread will run to figure out what's changed and *it* will re-enable the queu). This fine amount of control also gets us closer to having an external policy engine decide which fabric devices we really want to log into. When resetting the Qlogic 2X00 units, reset the FPM (Fibre Protocol Module) and FBM (Fibre Buffer Modules). Also remember to clear the semaphore registers. Tell the RISC processor to not halt on FPM parity errors. Throw out the ISP_CFG_NOINIT silliness and instead go to the use of adapter 'roles' to see whether one completes initialization or not (mostly for Fibre Channel). The ultimate intent, btw, of all of this is to have a warm standby adapter for failover reasons. Because we do roles now, setting of Target Capable Class 3 service parameters in the ICB for the 2x00 cards reflects from role. Also, in isp_start, if we're not supporting an initiator role, we bounce outgoing commands with a Selection Timeout error. Also clean out the TOGGLE_TMODE goop for FC- there is no toggling of target mode like there is for parallel SCSI cards. Do more cleanup with respect to using target ids 0..125 in F-port topologies. Also keep track of things which *were* fabric devices so that when you rescan the fabric you can notify the outer layers when fabric devices go away. Only force a LOGOUT for fabric devices if they're still logged in (i.e., you cat their Port Database entry. Clean up the Get All Next scanning. Finally, use a new tag in the softc to store the opcode for the last mailbox command used so we can report which opcode timed out.
2001-02-12Sync up with other platforms - use a common string to complain aboutmjacob
lack of parameter memory. Set logging defaults sanely. Set default node && port WWNs separate from other platforms. Make sure we set up HBA role correctly.
2001-02-12set default adapter role, propage config flagsmjacob
2001-02-12update to latest firmware levelsmjacob
2001-02-12Remove debuging printf left by accident.Artur Grabowski
2001-02-12Remove duplicate definition of badaddr.Artur Grabowski
2001-02-12correct buginstat(), statclock now working for '188, systat vmstat now works,Steve Murphree
serial driver for '188 working better.
2001-02-12Check if softdep is enabled for this fs before calling softdep'sFederico G. Schwindt
fsync; art@ ok.
2001-02-12putting #error into an include file is totally wrongTheo de Raadt
2001-02-12One more step to UVM. It is necessary to map the I/O buffers, using uvm or vm.Dale Rahn
These changes taken from alpha/i386 combination.
2001-02-11$OpenBSD$Federico G. Schwindt
2001-02-11Allow up to 12 virtual terminals (CTRL-ALT-F1 through CTRL-ALT-F12). OnlyAaron Campbell
6 are enabled by default. After these changes, to enable more you must change the "option WSDISPLAY_DEFAULTSCREENS" in the kernel config file and edit /etc/ttys to switch the new ones from 'off' to 'on'.
2001-02-11Change MAXSCREEN to 12 so ttyC8-b can be used. Previous behaviorFederico G. Schwindt
only allowed 8 ttys as maximun, despite the WSDISPLAY_DEFAULTSCREENS value. ttyCa-b can't be accessed now but a fix is on the way; aaron@ ok.
2001-02-11If IPSEC is defined but not CRYPTO, spit an error; angelos@ okFederico G. Schwindt
2001-02-11Previously, when sendsig() set up the current process's context to runBrandon Creighton
sigcode to call a handler, SP was set in the middle of the struct trapframe/struct sigcontext pair placed on the stack. This was adequate when only one signal is being delivered at a time, but when two signals are delivered in one syscall, the second invocation of sendsig() overwrote some of the first sendsig() invocation's stack data. The result was that under certain circumstances, (e.g., sending signals to backgrounded processes from ksh) the argument passed to signal handlers when the second signal (the one corresponding to the first sendsig() invocation) was delivered was bogus data from the stack. Therefore, programs that depended on the "sigraised" argument to be accurate blew up. This fix ensures that sendsig() always leaves a process's SP out of the way of structures that will be used. AP is not moved, though, so sigreturn can find the args correctly. Also, sigcode is changed to compensate for the SP change.
2001-02-11Pick up a NetBSD hack to attach Cheetah to vsbus as well as ibus.Hugh Graham
High kludge factor, but the payoff is vsbus scsi for free. Most of the work is by Michael Kukat and ragge, with a few other synchronisations thrown in.
2001-02-10When computing the value of an entry in the string table, don'tTodd C. Miller
just add strtab to s->n_un.n_strx since we may have multiple string tables (for instance in the case of lkms). Instead, add in t->end whcih in a.out will be the start of the string table for this symtab. OK'd by niklas@
2001-02-10sync w/ netbsd; aaron@ okMichael Shalayeff
2001-02-10$OpenBSD$Federico G. Schwindt
2001-02-10new symbol handling in ddb for ELF, there is still a problem with hangman on ↵Niklas Hallqvist
alpha though..
2001-02-09use correct FREE() do dispose sillyrename on fail; deraadt@ okMichael Shalayeff
2001-02-09Tickle D0 power state so the cs4281 works after reboots from Windows 2000.Aaron Campbell
From NetBSD, tested on a dual-boot IBM ThinkPad X20.