Commit Graph

9675 Commits

Author SHA1 Message Date
uch b36a55093a HP Jornada 680 Japanese model keymap. 2001-03-02 19:19:34 +00:00
thorpej 80436e480c Regen -- Add Mylex AcceleRAID and eXtremeRAID product and subsystem IDs. 2001-03-02 17:32:59 +00:00
thorpej e7ad0a9187 Add Mylex AcceleRAID and eXtremeRAID product and sybsystem IDs. 2001-03-02 17:32:01 +00:00
thorpej 848541a63e In the self-describing bogus code block, at least use plausible
subclass IDs.
2001-03-02 06:56:11 +00:00
thorpej af864c36fe Regen; added Xircom WinGlobal modem product ID. 2001-03-02 06:53:54 +00:00
thorpej 7ec4113ee0 Add product ID for Xircom WinGlobal modem. 2001-03-02 06:51:07 +00:00
mrg 11524b8374 allow pci_bus_maxdevs() to be replaced with pci_bus_devorder() and
pci_dev_funcorder() that have the following signatures:

int pci_bus_devorder(pci_chipset_tag_t pc, int bus, char list[32]);
int pci_dev_funcorder(pci_chipset_tag_t pc, int bus, int device, char list[8]);

they control the order of PCI bus probe at the device and function level,
by filling in a value from 0 to 31 for pci_bus_devorder() or 0 to 7 for
pci_dev_funcorder, with a value of -1 to signify no more entries.


when device properties arrive, these will be replaced with some facility
based on properties (design/implementation unknown currently.)
2001-03-02 06:24:17 +00:00
mjacob bf630787f7 Fix isp_print_qentry to print all four lines- it's been broken for months. 2001-03-02 04:51:14 +00:00
mjl 01cd332ad1 Fix typo to make this compile even w/ debug defines. 2001-03-01 22:53:13 +00:00
thorpej 8f79095477 Differentiate a couple of similar error message, and add newlines
on the end of them.
2001-03-01 22:10:57 +00:00
uch 2485a882f2 if catch unknown scancode, print its row and column. 2001-03-01 16:41:36 +00:00
itojun 0913c0736c IPv6 support, from fujiwara@rcac.tdi.co.jp 2001-03-01 00:40:41 +00:00
mrg 7fa2fd24b4 match SUNW,qfe; PR#12301 from Rob Quinn <rquinn@sprint.net> 2001-02-28 14:52:48 +00:00
mjacob bcc65cfc34 roll platform minor 2001-02-28 05:53:59 +00:00
mjacob 0adf4d13bb Oh, god, make the pain stop. "Fix" this one more time- but for the next
to last time.

It turns out that in fact, sparc64 was *not* working. There is a discussion
within the tech-kern@netbsd.org mail list as of just prior to this date
that contains the details.

Suffice to say that for sparc64 we have to add back in the usage
of BUS_DMA_COHERENT again to the call to bus_dmamap_load_raw. PK
added the usage of bus_dmamap_load_raw- which agrees with the
man page description of it- but now does not match what the
original BusDma author seems to think it's supposed to do.

While we're at it, do a specific set of steps for setting up and,
if necessary, tearing down, mailbox dma mappings.
2001-02-28 05:46:46 +00:00
sato b8e5bc569c * add WSDISPLAYIO_PARAM_BACKLIGHT, WSDISPLAYIO_PARAM_CONTRAST,
WSDISPLAYIO_PARAM_BRIGHTNESS supports.
2001-02-27 08:54:17 +00:00
nisimura 8e3f2f7c65 Change to exclude TC identification string PMAGD-AA because 8bpp can not
be handled with current implementation.  sfbplus.c should be capable of
doing the right things for multiple depths by ultilizing SFB+ design.
2001-02-27 02:11:36 +00:00
fvdl b72e6ca276 Add quirks for VMware emulated disks, for NetBSD as a guest OS. 2001-02-26 22:31:27 +00:00
soren d9c93ee62a Regen. 2001-02-26 20:54:39 +00:00
soren 3ed46572f7 Add M-Systems DiskOnKey. 2001-02-26 20:53:43 +00:00
matt 0da665182e Add pckbc attachment so we can get wscons on the dnard. 2001-02-26 02:39:30 +00:00
ad 811e2b490b Wait 10x longer for status bits. 2001-02-25 17:46:42 +00:00
ad 8be33f9cc5 Remove mlxvar.h, which was added for no apparent reason. 2001-02-25 16:15:07 +00:00
ragge 511a94bf6e Do not send looped-back setup packets into the IP stack.
Handle xmit interrupts due to invalid transmit list (``cannot happen'')
Shoot the one that wrote the software for those cards.
2001-02-25 13:51:11 +00:00
mjacob 0dce6b45bc this was *still* wrong 2001-02-25 01:49:18 +00:00
mjacob 9d2a3fb24d More Kudos to Izumi: fix another argument to bus_dmamap_sync 2001-02-25 01:44:02 +00:00
mjacob d5f967e27f Now that the underlying code for bus_dmamap_sync appears to do the
right thing, don't use the illegal and "just worked by chance" addition
of BUS_DMA_COHERENT to bus_dmamap_load_raw. There still is a necessity
to add to the architecture to allow one to hint that this should be
a cache coherent mapping.

Fix offset argument to be zero for flushing data tranfers. Kudos to Izumi
for spotting this.
2001-02-24 23:30:01 +00:00
christos 76ea3fcb82 regen 2001-02-24 20:13:53 +00:00
christos e6583ce243 add ESS wd controller. 2001-02-24 20:13:33 +00:00
uch 38626ea224 add HP Jornada 690 Japanese model keymap. 2001-02-24 19:52:22 +00:00
uch edde743dc9 replace mips_btop, mips_ptob with mips, sh, arm common define.
ANSIfy and de-__P()
2001-02-24 19:51:20 +00:00
lukem 3aeb5f2f29 whitespace police 2001-02-24 01:59:46 +00:00
cgd 98af50970f "#else if" is not a valid CPP directive. Use "#elif". 2001-02-24 00:03:46 +00:00
cgd c105346203 Avoid sequence point issues. 2001-02-24 00:03:12 +00:00
cgd 023e9f0649 C requires that labels be followed by statements. 2001-02-24 00:01:22 +00:00
mjacob e8ae80a071 Add missing BUS_DMA_COHERENT to bus_dmamap_load_raw calls for request
and response queues- this makes this work on UltraSparc now.
2001-02-23 23:57:47 +00:00
mjacob 3744fa3f33 Implement bootverbose recognition. Move interrupt registry up a bit so we can
use interrupting mailbox commands for isp_init. Set default HBA role.
Rename request/response dma maps to be more consistent with PCI version.
Enable bus_dmamap_sync on request queue- we already do this for response
queue- better do it for the request queue as well.

Checked to be working against a Sparc10.
2001-02-23 17:28:58 +00:00
uch b81de58f77 I forgot to move Makefile. 2001-02-23 14:08:54 +00:00
mjacob baf0985f2a Fix a longstanding bug- we had the sense of what bit 14
for the ICB firmware options meant- *I* had taken it to
mean that if you set it, Node Name would be ignored and
derived from Port Name. Actually, it meant the opposite.
As a consequence- change ICBOPT_USE_PORTNAME to the
define ICBOPT_BOTH_WWNS- makes more sense.
2001-02-23 05:38:27 +00:00
uch 659f65e0ee hpc common files are moved to dev/hpc. 2001-02-22 18:37:54 +00:00
minoura 8353ca15cc Reset the mixer when resume from suspend.
This is required on some laptops with a buggy APM BIOS.
Code from Inoue Yoshinari <pf5y-inue@asahi-net.or.jp>.
2001-02-22 15:23:31 +00:00
enami 79d20d7c7a - Initialize auto variable (win[{0,1}].win_flags).
- If PCCBB_MEM_CACHABLE isn't set, clear CB_BCR_PREFETCH_MEMWIN[01].
2001-02-22 10:39:31 +00:00
jdolecek aceb9e23c9 don't panic if there is ESC in kernel output, just print a warning and
ignore the ESC; also remove the #ifdef DIAGNOSTIC
2001-02-21 23:12:58 +00:00
jdolecek 5cb9412e0d simplify 2001-02-21 22:57:14 +00:00
jdolecek 522f569810 make some more constant arrays 'const' 2001-02-21 21:39:52 +00:00
minoura b53129e394 There is no reason to exclude FreeBSD :). 2001-02-21 10:19:30 +00:00
minoura a7d1fe9920 Correct the 1st argument for pci_conf_{read,write}.
On non-i386 platforms the previous revision could not be compiled.
Pointed out by mjl.
2001-02-21 00:32:31 +00:00
aymeric 5a6198b1a2 Put the correct ethernet address prefix for the Synergy 21 card.
This reflects reality, although the value is ignored anyway.
2001-02-20 22:34:23 +00:00
martin f0d6660cf4 Filename cleanup: remove i4b_ prefixes outside sys/netisdn, last round.
Renamed in sys/dev/ic:
i4b_hscx.c -> hscx.c
i4b_hscx.h -> hscx.h
i4b_ipac.h -> ipac.h
i4b_isac.c -> isac.c
i4b_isac.h -> isac.h
i4b_isic.c -> isic.c
i4b_isicbchan.c -> isic_bchan.c
i4b_isicl1.c -> isic_l1.c
i4b_isicl1.h -> isic_l1.h
i4b_isicl1fsm.c -> isic_l1fsm.c
2001-02-20 22:24:31 +00:00
minoura fa6cae09e2 Re-initialize some registers after resuming from suspend.
Some APM BIOSes do not restore them.
Reviewd by augustss.
2001-02-20 15:20:32 +00:00
minoura 3b418f4eec Re-initialize more registers after resuming from suspend.
Some APM BIOSes do not restore them.
Reviewd by haya.
2001-02-20 15:16:38 +00:00
mjacob 1c40195bea Add ISPCTL_RUN_MBOXCMD control op and ISPASYNC_UNHANDLED_RESPONSE async event. 2001-02-20 01:11:35 +00:00
mjacob 3f7d69fe2c Add ISPCTL_RUN_MBOXCMD control function and ISPASYNC_UNHANDLED_RESPONSE
async event. Call ISP_DUMPREGS on f/w erro. Correct problem in bitmap
for MBOX_DUMP_RAM.
2001-02-20 01:10:50 +00:00
cgd 8a986b2e96 convert to use getprogname() 2001-02-19 22:48:57 +00:00
aymeric 4291ee011b regen 2001-02-19 21:32:37 +00:00
aymeric c838a01906 Add an entry for the Synergy 21 S21810+
From Stefan Blomen <Stefan.Blomen@gmx.de>
2001-02-19 21:30:38 +00:00
fvdl 44467271c4 Switch line in mute off by default. 2001-02-19 21:14:49 +00:00
nisimura ab8c4071cc Void-filling to honour SVIDEO ioctl call. 2001-02-19 09:11:11 +00:00
mjacob 7c3d7f0df5 Make it compile (for alpha). The porting author might want to look
at this more closely than I have.
2001-02-18 21:02:54 +00:00
bouyer d32a56145d ALi controller: can only do UltraDMA for revs >= 0x20.
From OpenBSD.
2001-02-18 18:07:53 +00:00
bouyer 265f72bab6 Add support for INTEL 82801BAM IDE controller, from OpenBSD. 2001-02-18 17:58:59 +00:00
bouyer ecc7103aa9 Regen. 2001-02-18 17:54:50 +00:00
bouyer a14f4f6d84 Add Intel 82801BAM IDE controller, found in laptops. From OpenBSD 2001-02-18 17:54:18 +00:00
taca 47e672bfdc Add mlxvar.h as include files to install. 2001-02-18 14:17:45 +00:00
martin 933440dc9c Filename cleanup police (per discussion with Soren S. Jorvang):
remove all (legacy) "i4b_" prefixes outside of sys/netisdn.
Prefix all card specific driver support files with the basename
of the driver bus attachement file.

Renamed here:
i4b_isic_isa.c -> isic_isa.c
i4b_avm_a1.c -> isic_isa_avm_a1.c
i4b_daic_isa.c -> daic_isa.c
i4b_itk_ix1.c -> isic_isa_itk_ix1.c
i4b_tel_s08.c -> isic_isa_tel_s08.c
i4b_tel_s016.c -> isic_isa_tel_s016.c
i4b_tel_s0163.c -> isic_isa_tel_s0163.c
i4b_usr_sti.c -> isic_isa_usr_sti.c
2001-02-18 13:54:32 +00:00
martin cc812b4ce2 Filename cleanup police (per discussion with Soren S. Jorvang):
remove all (legacy) "i4b_" prefixes outside of sys/netisdn.
Prefix all card specific driver support files with the basename
of the driver bus attachement file.

Renamed here:
i4b_isic_pcmcia.c -> isic_pcmcia.c
i4b_isic_pcmcia.h -> isic_pcmcia.h
i4b_avm_fritz_pcmcia.c -> isic_pcmcia_avm_fritz.c
i4b_elsa_isdnmc.c -> isic_pcmcia_elsa_isdnmc.c
i4b_elsa_mcall.c -> isic_pcmcia_elsa_mcall.c
i4b_sbspeedstar2.c -> isic_pcmcia_sbspeedstar2.c
2001-02-18 10:36:42 +00:00
martin 63d4175528 Filename cleanup police (per discussion with Soren S. Jorvang):
remove all (legacy) "i4b_" prefixes outside of sys/netisdn.
Prefix all card specific driver support files with the basename
of the driver bus attachement file.

Renamed here:
pci_isic.h -> isic_pci.h
pci_isic.c -> isic_pci.c
i4b_avm_fritz_pci.c -> isic_pci_avm_fritz_pci.c
i4b_elsa_qs1p.c -> isic_pci_elsa_qs1p.c
2001-02-18 09:37:19 +00:00
martin 40db0102c3 Filename cleanup police (per discussion with Soren S. Jorvang):
remove all (legacy) "i4b_" prefixes outside of sys/netisdn.
Prefix all card specific driver support files with the basename
of the driver bus attachement file.

Renamed here:
isapnp_isic.c -> isic_isapnp.c
i4b_ctx_s0P.c -> isic_isapnp_ctx_s0P.c
i4b_drn_ngo.c -> isic_isapnp_drn_ngo.c
i4b_dynalink.c -> isic_isapnp_dynalink.c
i4b_elsa_qs1i.c -> isic_isapnp_elsa_qs1i.c
i4b_siemens_isurf.c -> isic_isapnp_siemens_isurf.c
i4b_sws.c -> isic_isapnp_sws.c
i4b_tel_s0P.c -> isic_isapnp_tel_s0P.c
2001-02-18 09:24:49 +00:00
matt 088a73301e regen 2001-02-18 05:59:23 +00:00
matt d63e0d8c75 Add Symbios FC909 2001-02-18 05:58:41 +00:00
mrg eb77d4840c add OFW_PCI_PHYS_HI_BUS() 2001-02-17 16:28:37 +00:00
martin 48501b8e83 Rename isa_isic.c to i4b_isic_isa.c and isadaic.c to i4b_daic_isa.c
to improve naming consistency.
2001-02-17 15:38:09 +00:00
martin 618dd31ddd Rename pcmcia_isic.[ch] to i4b_isic_pcmcia.[ch] to better fit in the
grand sheme of names.
2001-02-17 15:00:49 +00:00
martin 982f2baf7e Abort attach when failing to allocate io range.
Don't allocate one large io range, this fails about every time on real
pcmcia buses (not attached to pci/cardbus bridges) because of other
devices interfering in that range. Use the bogusly small region for
now, which works purely by chance (map granularity) on cardbus bridges
too (more or less).
XXX - make this map three different, small regions after layer1 <-> layer2
XXX   interface has been brought in shape.
2001-02-17 11:41:35 +00:00
pk 672f49bfa2 Turn off command tagging by default for pre-SCSI2 devices. 2001-02-16 22:54:27 +00:00
kenh d6cdd9ad5b Connect to the interrupt endpoint on the control interface to receive
notification messages.  This lets us properly pass line status changes
down to the ucom driver (specifically, DSR, DCD, and RI).
2001-02-16 20:15:57 +00:00
mrg 2f85e9e153 expand this a little further to include defines of:
OFW_PCI_PHYS_HI_DEVICE() - extract PCI device from phys_hi
	OFW_PCI_PHYS_HI_FUNCTION() - extract PCI function from phys_hi
and the definition of `struct ofw_pci_register'.
2001-02-16 14:16:30 +00:00
sato a965aa1435 rasops4.c depend on rasops_masks.c 2001-02-15 09:51:28 +00:00
christos 6e65af2882 make this compile again. 2001-02-14 21:10:20 +00:00
jdolecek 60b3bb82f9 remove mca_issupp() and just use UNCONF for unknown devices, like other
buses do - array of 'supported' peripheals makes addition of new stuff
unnecessarily harder
2001-02-14 19:31:19 +00:00
christos e0ddf88b0a PR/12204: Andreas Wrede: Add support for Lava 8-port serial card. 2001-02-14 15:07:28 +00:00
tacha 08cc996106 Check and set PCI power management register. clcs now works when
warm boot from Windows.
2001-02-13 04:11:11 +00:00
thorpej f234f12854 Oops, `mii' attribute has to go onto the device decl. 2001-02-13 02:31:41 +00:00
thorpej 4641c2d237 Regen; D-Link DMF-560TX. 2001-02-13 02:09:37 +00:00
thorpej 65fd586599 Add a new D-Link ID (they seem to actually have a valid one, now!),
and add the DMF-560TX product.
2001-02-13 02:07:53 +00:00
thorpej db1896b76f ne at pcmcia needs dl10019, mii, mii_bitbang 2001-02-13 01:58:56 +00:00
thorpej 4027cab9ea Support for the MII on the D-Link DL10019/DL10022 NE2000-compatible
Ethernet chips.
2001-02-13 01:43:02 +00:00
bjh21 3cbd9caea7 Fix an uninitialised variable which could have caused corruption of the user
button state (and hence spurious mouse clicks) if the event queue filled
up.
2001-02-13 01:14:45 +00:00
ichiro 357d9efda4 Power Management Hook
esm_powerhook();
2001-02-12 23:56:40 +00:00
mjacob a898cb6cb0 Eliminate ISP2100_FABRIC- we always allow for fabric now. Add an
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-12 23:33:49 +00:00
mjacob b01ecfe65c Put in offset definitions for FPM and FBM registers, plus just enough
bits defined so we can reset them.
2001-02-12 23:33:11 +00:00
mjacob a86729db93 Add structure defining FC-AL position maps. The only tool that I know of
that really uses this is luxadm(8) under Solaris.
2001-02-12 23:32:44 +00:00
mjacob 4409fa23b2 Remove ISP2100_FABRIC (we're always fabric now). Fix usage of isp_lastmbxcmd
to report the mailbox command that times out. Fix isp_unswizzle_sns_rsp
which for reasons *I* find obscurer just doesn't work correctly on sparc64
with words past 128. I have no idea why this *does* work on SparcLinux.
2001-02-12 23:32:11 +00:00
mjacob 25bc760687 Do some cleanup based upon adapter role- mainly not enabling interrupts
if we're ISP_ROLE_NONE. Change ISPASYNC_LOGGED_INOUT to ISPASYNC_PROMENADE.
Make sure we note if something is a fabric device.
2001-02-12 23:30:12 +00:00
mjacob d9696b793a Add isp_fc_runstate function- this function's purpose is to, in stages,
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-12 23:29:26 +00:00
mjacob 85b0326ec6 Minor stuff:
Remove ISP2100_FABRIC defines- we always handle fabric now. Insert
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.

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.


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.

Major stuff:
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.

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.
2001-02-12 23:28:50 +00:00
mjacob 055ac54fd2 set default HBA role 2001-02-12 23:25:20 +00:00
mjacob e8b5aa491e update to latest f/w 2001-02-12 23:19:55 +00:00
ad 469b91fce0 Don't put the request onto the `worklist' in ccb_submit(), since it may
still be on the pending queue.
2001-02-12 19:04:35 +00:00
thorpej ec0ab7054b Add a "stop_card", which is the opposite of "init_card", and
call it from dp8390_stop().
2001-02-12 18:56:26 +00:00