Commit Graph

301 Commits

Author SHA1 Message Date
ad
4a780c9ae2 Merge vmlocking2 to head. 2008-01-02 11:48:20 +00:00
nisimura
27f7bc42d9 remove EUMBBAR register debugging stuff. It should be ok when the
control reachs here.
2007-12-12 04:24:57 +00:00
nisimura
9cd3f872dc have a compile time option, START_DDB_SESSION, to invoke immediate
DDB session in mid initppc().
2007-12-12 04:17:49 +00:00
nisimura
0edee75daa - have machine/cpu.h and sys/device.h references here. 2007-12-11 05:32:12 +00:00
nisimura
d1ce7e7621 - switch to use majors.powerpc. 2007-12-11 05:01:21 +00:00
nisimura
da81a6921f - make sure to advertise flowcontrol and 1000T FDX/HDX capablity for
GbE NICs.
- stop and reactive MII auto polling for every MII read/write access
in vge.c and nvt.c.
2007-12-09 09:55:58 +00:00
tsutsui
99221a563b Use TAILQ_FIRST(3) and TAILQ_NEXT(3) macro. 2007-12-05 12:31:25 +00:00
ad
4b293a84e1 Interrupt handling changes, in discussion since February:
- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.
2007-12-03 15:33:00 +00:00
nisimura
5155a3ee9b comment-out lpt0 since EnCorePP1 experiences occasional irq 7 flood
regardless of the special care to disable LPT function in VIA 686SB.
May not revive anytime soon as it's considered little use.
2007-11-29 06:50:37 +00:00
nisimura
e511172428 add preliminary wm.c, a lot of fixes to make other NIC more sensible. 2007-11-29 04:00:17 +00:00
nisimura
a656f3f7be - SandpointX3 practices serial mode EPIC with the help of special
FPGA circuit.  pin A input only; pin B/C/D are not counted in.
- With EnCorePP1 heuristics find that i82559 (AD25) responds to EPIC 2.
2007-11-19 14:36:14 +00:00
nisimura
2820af119e - fix initblk tlen/rlen field values.
- fix pcn_send() txd xd1 member.
2007-11-12 14:03:35 +00:00
nisimura
aca73b663f - cache insns accept unaligned addresses to go.
- correct dcache_line_size range detect errors in inv()/wbinv().
- make inv() unaligned case friendly.
2007-11-12 05:29:22 +00:00
nisimura
da304b3915 EncorePP1 VIA686B southbridge fixup work; hide and disable USBx2, AC97
audio and MC97 modem, and force IDE to have native mode.
2007-11-05 15:56:37 +00:00
nisimura
0b718fbde6 - use offset 0x4500 serial for EUMB console.
- make sure to have I-cache/D-cache enabled. Ok for DINK32 and ppcboot.
- have 32B aligned fxp txdesc.
- sip transmit now works.
2007-11-05 13:41:48 +00:00
nisimura
ac767563ef - rework sip.c, with bitbang fix. still remains not serving well.
- fix for PCI-PCI bridge recursive call.
2007-11-05 00:40:39 +00:00
nisimura
72585a9257 - extend nifdv struct to have NIF nickname for rootdev.
- a small mod. for bitbang'ing practice.
- DEVTOV() band-aid.
2007-11-02 02:31:11 +00:00
nisimura
9169c01b13 correct to have PCN32 init_block. add it to the driver list to use. 2007-10-30 05:05:19 +00:00
nisimura
9cc69ec81f make this less dependent to the rest of NetBSD kernel. 2007-10-30 04:29:51 +00:00
nisimura
d1fea0c157 major PCI rework to make possible NIC autoconf. now bootloader
can have multiple network interface device drivers and choose one
by PCI_ID_REG matching.
2007-10-30 00:30:13 +00:00
nisimura
ae8068f5f7 still remain crude, work in progress. 2007-10-28 03:15:04 +00:00
nisimura
b08d93761c stop to generate SREC kernel image. netboot is now considered a
standard path to boot off. DINK32 and ppcboot can handle it as a
staging bootloader.
2007-10-27 15:36:29 +00:00
nisimura
f1a2c1395e arrange cache line friendly allocation where applicapable. Not
immutune from careless change of struct local. Away from
compiler extention.
2007-10-27 06:34:19 +00:00
nisimura
f74459a106 redo again the arrangement. 2007-10-27 05:35:55 +00:00
nisimura
94ca8c41e4 - remove ppb which is unlikey used.
- a comment about console selection.
2007-10-27 05:24:29 +00:00
nisimura
e7cbc24fab rearrange lines to make the previous change easy to understand. 2007-10-27 05:10:19 +00:00
nisimura
653a3ff7de - an inch forward southbridge-less configuration.
- make sure to have a fallback default for the case when no bootinfo
  was prepared by a bootloader.
2007-10-27 04:32:39 +00:00
nisimura
2cbfeb1621 - make sure to have Rx poll demand issued.
- more vtophys() fallout.
- dismiss PHY stuff until MII r/w ops written.
2007-10-27 02:51:59 +00:00
nisimura
a7153f09ae - copy intr.h from prep and make mods.
- ANSI-fy pci_machdep.c
2007-10-27 02:06:04 +00:00
nisimura
80011a5b90 off-by-one error to detect MSB of SEEPROM index. 2007-10-27 02:01:42 +00:00
nisimura
eae2367539 make sure to have vtophys conversion to feed memory ptr to HW,
and some consistency among them.
2007-10-26 14:30:03 +00:00
nisimura
9c0670836c add missing rxstore[] allocation. 2007-10-26 13:56:18 +00:00
nisimura
16ea8193e3 sprinkle copyright notice. 2007-10-26 13:32:57 +00:00
nisimura
b9c06c9fc0 add one more 10/100 Ethernet PCI NIC and fix some others. Needs
innovation to handle multiple device configuration with match/attach/init
sequence like NB auto-configuration machine.
2007-10-26 01:16:27 +00:00
nisimura
1b23a1904b add two popular GeE PCI cards. big endian CPU aware and works with
PIPT writeback cache.  still crude, refinement will follow as tests
on real HW progress.
2007-10-25 10:54:55 +00:00
nisimura
5e06d95c3f add three popular 10/100 Ethernet PCI cards. big endian CPU aware and
works with PIPT writeback cache.  still crude, refinement will follow
as tests on real HW progress.
2007-10-25 09:02:15 +00:00
nisimura
65cdd295c3 Add fxp(4) to facilitate the entire development cycle. Benefitial
to emulate NAS products with southbridge-less SP3 and EnCorePP1.
2007-10-24 14:01:01 +00:00
garbled
d974db0ada Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
2007-10-17 19:52:51 +00:00
ad
9f56dfa520 Merge brelse() changes from the vmlocking branch. 2007-10-08 18:02:53 +00:00
ad
66fefd117b It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
2007-07-29 12:15:35 +00:00
ad
88ab7da936 Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
macallan
43b2c2b989 include files.wsfb 2007-04-10 02:50:32 +00:00
he
4012c93047 Use char* with mtod() when doing pointer arithmetic on the result. 2007-03-09 12:03:25 +00:00
he
582dc91458 More fixes after the caddr_t removal.
Mostly cast to char* for pointer arithmetic,
but also one missing indirection, and one "void *v, x;" fix.
2007-03-06 13:54:44 +00:00
christos
53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
ad
3363855a4a Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts
via a soft interrupt. In the near future, softclock will be run from process
context.
2007-02-16 02:53:43 +00:00
ad
b07ec3fc38 Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
hubertf
142c2a33ba Remove duplicate #includes, patch contributed in private mail
by Slava Semushin <slava.semushin@gmail.com>.

To verify that no nasty side effects of duplicate includes (or their
removal) have an effect here, I've compiled an i386/ALL kernel with
and without the patch, and the only difference in the resulting .o
files was in shifted line numbers in some assert() calls.
The comparison of the .o files was based on the output of "objdump -D".

Thanks to martin@ for the input on testing.
2007-01-24 13:08:11 +00:00
cube
747e90f203 Remove traces of scd(4), which apparently never actually had a driver in
the tree.
2007-01-09 21:59:08 +00:00
yamt
8bf7662829 merge yamt-splraiseipl branch.
- finish implementing splraiseipl (and makeiplcookie).
	  http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
	- complete workqueue(9) and fix its ipl problem, which is reported
	  to cause audio skipping.
	- fix netbt (at least compilation problems) for some ports.
	- fix PR/33218.
2006-12-21 15:55:21 +00:00