Commit Graph

197187 Commits

Author SHA1 Message Date
christos 4ffe9a1805 make the code more re-usable 2011-01-26 18:48:57 +00:00
bouyer 1fbeaeff16 Add a driver for the RDC Semiconductor RDC R6040 10/100 Ethernet controller,
as found in the vortex86 SoCs (http://www.vortex86dx.com).
Ported from freebsd.
Not added to amd64's GENERIC because this CPU is 32bit only.

thanks to DM&P Electronics, Inc for providing documentation and sample
devices for this work.
2011-01-26 18:48:51 +00:00
christos 9a37731036 make SSP friendly 2011-01-26 18:48:32 +00:00
bouyer 4ca29e6bc3 Add a driver for the RDC Semiconductor RDC R6040 10/100 Ethernet controller,
as found in the vortex86 SoCs (http://www.vortex86dx.com).
Ported from freebsd.
Not added to amd64's GENERIC because this CPU is 32bit only.

thanks to DM&P Electronics, Inc for providing documentation and sample
devices for this work.
2011-01-26 18:48:11 +00:00
uwe 0b43ff8c5f BRCR and BAMRA have different format in sh3 and sh4, so there's no
point in using SH_() wrapper to refer to them in code that is already
model-specific.
2011-01-26 18:43:30 +00:00
bouyer 948baca81d Regen: Add RDC Semiconductor R6040 10/100 integrated PHY 2011-01-26 18:39:25 +00:00
bouyer a24cf481d2 Add RDC Semiconductor R6040 10/100 integrated PHY 2011-01-26 18:39:04 +00:00
bouyer 24529c48cd Regen: Add RDC Semiconductor R6040 10/100 Ethernet 2011-01-26 18:37:52 +00:00
bouyer f8bfb5a7e1 Add RDC Semiconductor R6040 10/100 Ethernet 2011-01-26 18:37:06 +00:00
christos 74a83d351e Moving the ssp check inside the source code does not work properly because
the compiler loses information about the size of the object. So instead of
the hacky #define mess we did before, add a way to inject our function between
the user call and the system call.
2011-01-26 18:11:35 +00:00
christos e6a9e964d2 provide a way to override the weak name. 2011-01-26 18:08:00 +00:00
christos 93fcf9c9a9 fix readlink prototype. 2011-01-26 18:07:44 +00:00
pooka feb7052396 add entries required by sandpoint 2011-01-26 16:53:17 +00:00
uebayasi 346fff22c8 Fix build of malta/sbmips. 2011-01-26 16:31:00 +00:00
pooka 84a1daa21a add sandpoint dirs for man chapter 4, they seem to be required now 2011-01-26 15:00:56 +00:00
pooka e6450adeb5 plug fd leak in reconnect code 2011-01-26 14:42:41 +00:00
nisimura 9f531b55b7 one more twist to complete newvers_stand.sh transition. Include timestamp
in banner.
2011-01-26 13:36:49 +00:00
tsutsui 08814574b2 Add proper prefix to structures. 2011-01-26 13:14:07 +00:00
phx 4ce3172075 bootprog_maker and bootprog_date are missing since we switched to the
MI newvers_stand.sh script. Remove the refering information line.
2011-01-26 13:13:25 +00:00
nisimura d49f13dd72 add sandpoint satmgr device node entry. 2011-01-26 11:29:04 +00:00
nisimura 2b86ddb239 introduce sandpoint satmgr(4) and altboot(8) man page entries. 2011-01-26 11:25:51 +00:00
pooka 380d30c783 make this build on non-emips again 2011-01-26 10:58:19 +00:00
wiz ba222fd491 Fix typo in Nd. From Ryo HAYASAKA in PR 44462. 2011-01-26 09:56:51 +00:00
wiz 17d601176d Fix typo. 2011-01-26 09:53:20 +00:00
enami 40713a94c3 Introducing inner loop prevent us from exiting from the original loop. 2011-01-26 08:49:48 +00:00
pooka 5f7e80a834 Add support for the Extensible MIPS ("eMIPS") platform. The
NetBSD/emips port runs on Xilinx and Beecube FPGA systems and the
Giano system simulator.

eMIPS is a platform developed at Microsoft Research for researching
reconfigurable computing.  eMIPS allows dynamic loading and scheduling
of application-specific circuits for the purpose of accelerating
computations based on the current workload.

NetBSD eMIPS support for NetBSD 4.x was written at Microsoft Research
by Alessandro Forin and Neil Pittman.  Microsoft Corporation has
donated full copyright to The NetBSD Foundation.

Platform support for eMIPS is the first part of Microsoft's
contribution.  The second part includes the hardware accelerator
framework and will be proposed on tech-kern soon.
2011-01-26 01:18:43 +00:00
matt ecfd85d839 Fix KDASSERTMSG defintions for !DEBUG 2011-01-26 01:02:46 +00:00
dyoung c2126ca4c3 Update comment on RTM_CHGADDR to describe better what it's for. 2011-01-26 00:58:36 +00:00
dyoung 7617f65929 Add some 10-gigabit media words used by Intel 82599. 2011-01-26 00:57:47 +00:00
dyoung 3f178d7fdb Protect against a NULL pointer dereference that I've seen in the wild. 2011-01-26 00:55:42 +00:00
dyoung 703c7df20f unifdef -U__bsdi__ -U__FreeBSD__ -D__NetBSD__. No functional change
intended.
2011-01-26 00:54:35 +00:00
dyoung c168b21fd4 Define masks for subsystem vendor and subsystem ID fields, plus a couple
of macros for extracting them.
2011-01-26 00:49:56 +00:00
pooka d13f306052 Add bwi from PR kern/40279. There is no know case of testing the
driver on amd64/i386, but if it doesn't work at least we're more
likely to get a PR instead of people wondering about lacking driver
support.
2011-01-26 00:25:55 +00:00
msaitoh f786db6b15 Fix MAC address check on 8257[156] and 80003 case. Some cards have non 0xffff
pointer but those don't use alternative MAC address in reality. So we check
whether the broadcast bit is set or not like Intel's e1000 driver.
Fixes PR kern/44072 reported by Jean-Yves Moulin.

Remove extra Warning for newer cards.
2011-01-26 00:25:34 +00:00
dyoung 7e230002ef Make oodles of mainly cosmetic changes that make rtw(4)'s PCI attachment
resemble its CardBus attachment very, very closely: slightly more than
24 lines are different.  Alas, I cannot commit the CardBus part of this
change, yet, because I have to finish my overhaul of CardBus resource
handling, first.
2011-01-26 00:16:52 +00:00
dyoung e664fe9f2c Get out of the interrupt handler early if !IFF_RUNNING. 2011-01-26 00:09:27 +00:00
dyoung 84c27227f5 Improve error reporting during attachment to PCI ath(4). 2011-01-26 00:08:30 +00:00
yamt b5ca7f5a5b - add some random notes
Basically, KASSERT() should be used for light-weight checks and
     KDASSERT() should be used for heavier ones.

     Callers should not rely on the side effects of expression because,
     depending on the kernel compile options mentioned above, expression might
     not be evaluated at all.

- Xr options(4)
- bump date
2011-01-25 23:46:48 +00:00
skrll 6c1ba1691b Trailing whitespace. 2011-01-25 21:27:48 +00:00
skrll 0f20ab8fc3 define<tab> 2011-01-25 21:27:11 +00:00
macallan 195f4ebf1c Add support for asynchronous drawing in vcons.
This is not finished but good enough for others to play with, enable with
options VCONS_DRAW_ASYNC
With this all drawing operations will be posted to a ring buffer instead
of being run directly, and run by a kernel thread. This avoids having to wait
for drawing operations to finish with the kernel lock held ( to a degree at
least ) and scrolling a (slow) framebuffer console should not disrupt other
operations anymore.
Problems:
- we need to switch back to synchronous operations when panicing or entering
  ddb, also re-enable async drawing when leaving ddb
- there are still occasional glitches
tested on an SS20 with cg14 and cg6 for dumb and accelerated cases
2011-01-25 20:28:21 +00:00
christos 3203d4e972 proved an __ssp_check macro. 2011-01-25 19:13:44 +00:00
christos 13fe5bd280 Fix SSP build.
XXX: This is gross.
2011-01-25 19:13:26 +00:00
christos c5d359be42 make pthread__sp unsigned long. 2011-01-25 19:12:04 +00:00
pooka 8c818e7121 fix compilation on -current 2011-01-25 17:37:00 +00:00
matt d32b258b78 When starting the second pass, don't continue the for loop but instead
just test try exceeding limit.
2011-01-25 17:22:43 +00:00
pooka 8d51265b11 Use rump_sp consistently in chapter 7
nothing gets past the wizd, nothing.
2011-01-25 14:05:42 +00:00
tsutsui 8831804ffb Split device_t/softc. Tested on Indy. 2011-01-25 13:22:05 +00:00
tsutsui fde2c776a7 KNF and misc cosmetics. 2011-01-25 13:12:39 +00:00
pooka 46e9c4686a enable WARNS=4 2011-01-25 12:56:57 +00:00