Commit Graph

3195 Commits

Author SHA1 Message Date
drochner 71bedfd458 Avoid an obscure gcc3 complaint about
"dereferencing type-punned pointer" by a cast to "void *".
I don't completely understand the warning, but it helps.
2003-07-03 11:12:32 +00:00
fvdl d5aece61d6 Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
jdolecek 83872500d3 cosmetic - make sc_supmedia of struct lance_softc const 2003-06-29 14:42:58 +00:00
simonb 7aa3dc6d45 Restore parentheses around return value that were removed with the
previous commit.
2003-06-29 14:09:21 +00:00
itojun 0778967b85 lwp change lossage 2003-06-29 12:36:35 +00:00
darrenr c372874b88 More changes for providing lwpid for ktrace (sparc GENERIC built) 2003-06-29 09:56:28 +00:00
thorpej 1966c13215 Correct the R-W'ness of GDT_IOCTL_DRVERS and GDT_IOCTL_CTRTYPE.
From Achim Leubner @ ICP.
2003-06-29 01:28:23 +00:00
darrenr 960df3c8d1 Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V
2003-06-28 14:20:43 +00:00
uwe c173e7908e Only install accelerated rasops for CyberPro, we don't know yet how to
access the coprocessor on 1682 in Krups.
2003-06-24 00:13:29 +00:00
martin d505b18964 Make sure to include opt_foo.h if a defflag option FOO is used. 2003-06-23 11:00:59 +00:00
bouyer 5b96ee4889 Make sure we pass the current state of the driver to scsipi_async_event(),
not the request from the mid-layer.
Fix kern/21893 from Anthony Mallet.
2003-06-19 20:11:14 +00:00
rh f51b948f11 Add and enable monitoring mode for Lucent cards. 2003-06-19 06:16:36 +00:00
bsh 4b87783212 in cominit(), turn on UUE bit in IER register if it is PXA2x0's
built-in UART.
2003-06-18 04:35:23 +00:00
simonb 83619b47f3 Wrap some long lines. 2003-06-15 01:34:34 +00:00
thorpej 0eff671820 Also pass a type argument to comcnattach() and com_kgdb_attach().
comspeed() (and thus cominit()) may need this information.
2003-06-14 17:01:06 +00:00
thorpej 5ae120da7b Introduce a new "type" field in the softc which is used to indicate
the general UART type.  Currently, we have "normal", "hayesp" and
"pxa2x0" types.  Replace the corresponding hw flags with the new type
values.
2003-06-14 16:25:52 +00:00
thorpej 3178a4f415 Add support for dynamic rescan of cache service logical drives, using
the ioctl issued by the ICP RAID management libraries (used by the
storcon and iirconfig tools).  This requires some infrastructure changes:
* Add a "service callback" mechanism that the ld driver (cache service)
  and the iopsp driver (raw service) can register with the icp parent.
  Right now this callback allows the children to adjust their notion of
  how many command openings are available.
* Add a mutex around the icp ioctl handler, allowing only one thread
  to execute an ioctl at a time.
* Add a way to freeze the controller command queue.  We stop all I/O
  while processing rescans (due to the semantics of icp_cmd()).
* Make icp_cmd() work when !cold.
* Add detach support to ld@icp.
2003-06-13 05:57:30 +00:00
kent f7f6440dff Add AD1981-specific initialization.
The patch provided by Lars Heideker.

PR: kern/20368
2003-06-13 05:31:29 +00:00
uwe faa757d699 Request KBC_SELFTEST in pckbc_cnattach(), hidden under #ifdef
PCKBC_CNATTACH_SELFTEST.  On machines where we boot on cold iron
(e.g. netwinder) we need this to init the pckbc.
2003-06-12 03:34:12 +00:00
scw 146abc03d1 In ac97_restore_shadow(), make sure to restore the codec's extended
control register if we configured it during ac97_attach().
2003-06-11 14:22:27 +00:00
uwe a7ed2dae3d Correct calculation of the blit src/dst for blits we do backwards. 2003-06-10 22:07:38 +00:00
grant 5d17facb78 wrap a debug message in #ifdef PCKBCDEBUG.
ok'd by simonb. fixes my PR kern/18441.
2003-06-10 07:46:29 +00:00
thorpej 47edad1115 Always queue transfers in the ld driver to prevent transient resource
shortages in the back-ends from aborting transfers.

Reviewed by ad@.
2003-06-07 23:37:24 +00:00
dogcow b7da893283 Some models of the 556B don't turn on the transmitter without magic
values getting written. Fix from FreeBSD; cf sys/pci/if_xl.c, rev 1.110
2003-06-05 22:11:21 +00:00
scw 5eb709747b Add support, via a kernel config file option, for the 16550-compatible
com ports found on Intel PXA2x0 processors.

Re-arrange the code which detects the FIFO configuration to defer
printing until _after_ com_fifo is cleared. Some supposedly compatible
chips clear the Tx/Rx FIFOs when this happens, resulting in previous
output being lost.
2003-06-05 13:40:38 +00:00
petrov 7a41bf9cce Fix the previous patch of me. 2003-06-02 22:52:36 +00:00
gmcgarry 59720b5acd Register definitions for TMS 9914 GPIB controller. 2003-06-02 03:55:04 +00:00
gmcgarry 8cfea04139 Register definitions for NEC uPD7210 GPIB controller. 2003-06-02 03:54:31 +00:00
uwe 97e817d08e Implement accelerated text ops using graphic coprocessor. 2003-05-31 23:22:26 +00:00
dyoung 5bcf25f890 Picky cosmetic change: remove leading space. 2003-05-31 19:38:08 +00:00
uwe 70161de941 Correct coprocessor registers base.
Feh, manuals that lie...
2003-05-31 18:25:40 +00:00
uwe a19b05b597 Oops, do not disable coprocessor in igsfb_init_ext. 2003-05-30 22:41:52 +00:00
yamt b1286467f1 ip/tcp/udp checksum offloading support for i82550.
largely from FreeBSD.
2003-05-26 16:14:49 +00:00
yamt b57a775a7d check and MCLAIM correct mbuf in fxp_copy_small path. 2003-05-25 15:10:23 +00:00
dyoung 55196426e6 Update to wi interrupt handling:
No longer require a hi-low-hi transition of a status bit before
  we believe it. It's a performance killer, and without it there
  does not seem to be a race.

  Sam Leffler reports that wi_intr needs to be bracketed by
  disable/enable interrupts through WI_INT_EN, or else performance
  is bad on Lucent. So now we do that.
2003-05-22 06:34:45 +00:00
dyoung ba845eeeb3 Stop wi panics on card ejection in Powerbook in both the enabled
and disabled states. This should fix an x86 panic somebody reported
on icb.
2003-05-20 01:29:35 +00:00
tsutsui 09d1921299 Misc cosmetics:
- some KNF and wrap long lines
- use TAILQ macro
- replace some magic numbers with macro
- use #if 0/#endif pair to disable code
2003-05-19 14:56:03 +00:00
fvdl 385c785fd2 Inialize sc_tty->t_dev early for serial console, so that cn_check_magic
will match in the case of a break before the console was opened for the
first time. Makes BREAKing into DDB work (again) as soon as interrupts
are enabled.
2003-05-18 15:10:08 +00:00
thorpej 02ad493d76 Fail icpioctl() if securelevel > 1. 2003-05-18 06:18:25 +00:00
thorpej 577fd9d8fa * Use aprint*().
* Add Ultra/133 to wdc_print_modes().
2003-05-17 21:52:03 +00:00
christos acec85bb7c Initialize and reset curtxeps to zero each time the error rate is exceeded.
This stops the continuous spewing of error messages, making it just sporadic.
2003-05-17 16:46:03 +00:00
thorpej 548e1373f8 Another fix from Achim Leubner @ ICP:
Test-busy *before* marking the controller as processing a user ioctl,
otherwise the command queue could stall permanently if test-busy returned
true.
2003-05-17 15:34:12 +00:00
dyoung 045ad0db5e IEEE80211_LOCK and WI_LOCK conceal enormous differences in locking
semantics on FreeBSD and NetBSD, so I am backing them out until
the macro set is enriched.
2003-05-16 01:26:17 +00:00
petrov 182de37049 Move DTIMEXP and RFIFOVF warnings under control of HMEDEBUG.
PR port-sparc64/20280 by grant beattie.
2003-05-14 19:46:59 +00:00
wiz 74da88f77a Correct spelling of coalesce. (Will forward to Justin Gibbs.) 2003-05-14 12:57:45 +00:00
wiz 05e990b871 summarize with two m. 2003-05-14 12:46:27 +00:00
thorpej 405790a85a Add support for the user-generated command interface and event logging
required by the ICP-Vortex management tools.  Many thanks to Achim Leubner
at ICP-Vortex for a few bug fixes and for testing.
2003-05-13 15:42:33 +00:00
dyoung e91ed415cd Revert to previous multicast logic, which enami@sm.sony.co.jp says
was correct.
2003-05-13 08:58:01 +00:00
dyoung 850a6ef1e6 Begin synchronization with FreeBSD:
1 Add channel mask, transmit rate-mask arguments to wi_scan_ap.
2 Adopt the macros WI_LOCK/WI_UNLOCK for synchronization. FreeBSD
  uses a different synchronization mechanism.
3 In wi_cmd, adopt constants WI_DELAY/WI_TIMEOUT for timing.
4 Pull debug messages from into wi_read_nicid from FreeBSD.
5 Bug fix: if IFF_ALLMULTI, don't filter any multicasts.
6 Count and report TX exceptions, but don't generate any additional
  interrupts.
2003-05-13 08:35:58 +00:00
dyoung 5ffe819b6e For converge with FreeBSD: 2003-05-13 07:17:46 +00:00