Commit Graph

43 Commits

Author SHA1 Message Date
nisimura
a63b802fd7 - cut half main.c and have brdsetup.c for cpu/board specifics.
- introduce match() routine to stylise the way to pickup a PCI
  device driver.
- fix tlp.c error in the previous commit.
2008-05-14 23:14:11 +00:00
nisimura
ba7dbc0c82 CAL cache alignment band-aid for BMR register. 2008-05-12 11:56:15 +00:00
nisimura
21ef04a5a6 sprincle volatile attribute for struct desc on memory to ease the
target HW dependency on cache characteristic and load-store
serialization, and GCC compile time optimization strength.
2008-05-12 09:58:36 +00:00
nisimura
3352c438fc Assign copyright notices. 2008-05-12 09:29:56 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
nisimura
ada4901876 - make pci.c construct more canonical. PCI bus plumbing groveller
now take a ptr to a function and an opaque data to achieve the
  specific work.
- this file is going to become a general form when brd specific
  params are encapsulated in an instance as struct.
2008-04-19 04:57:55 +00:00
nisimura
e11b7f14dc - fix an indentation error in atawd.c
- use partition 'e' for a disk with no NetBSD slice.
- add Linux ATAG to feature ELF Linux kernel booting. Commented out for now.
- fix errors to retrieve iospace BARs.
2008-04-09 16:26:29 +00:00
nisimura
2553846738 - bind wd_softc to f->f_devdata.
- allow to have BSDFFS, EXT2FS and DOSFS on disk drive.
- the bootloader name is becoming unappropriate.
2008-04-09 06:07:57 +00:00
nisimura
6d7713a9a1 - use a hardwired value for ISA/PCI iospace until the right solution
to find.
- use const [] construct for register location lookup.
2008-04-09 01:08:39 +00:00
nisimura
8ec93217ac - typo in MBR offset.
- redo the previous change in main.c and wm.c
2008-04-09 00:20:35 +00:00
nisimura
7c716f683a - note a comment about a discovery of viaide BAR read value weirdness.
- have RAID and SATA PCI storage subclass.
- cosmetics around NIC drivers.
2008-04-08 23:59:03 +00:00
nisimura
03449cb522 - accomodation for the case when TICK_PER_SEC is other than 100MHz. 2008-04-07 15:46:25 +00:00
nisimura
60c7b05675 - honour CONSPEED to determine EMUB console UDMB/UDLB register values.
- remove stray lines from siisata.c
2008-04-07 15:20:19 +00:00
nisimura
b06d491b48 - refer to how to use 57600bps console on the 2nd EUMB serial case. 2008-04-07 14:55:24 +00:00
nisimura
ac96fb2beb - add siisata.c in Makefile.
- use DEVTOV() to highlight vtophys() issue.
- VIA NICs do not stretch less than 60 octet frames.
2008-04-07 13:25:31 +00:00
nisimura
a904272206 - add siisata.c which should cover SiI 3112, 3512 and 3114.
- include IDE/SATA definitions in globals.h.
2008-04-07 12:33:57 +00:00
nisimura
bc0567728b add PCIIDE functionality which should cover cmdide, iteide, viaide and
slide.  Still not in working order.
2008-04-07 11:13:14 +00:00
nisimura
a0f6082331 - add MII bitbang op modelled after sip.c 2008-04-07 02:02:39 +00:00
tsutsui
19a464fa71 - fix build with OBJDIR
- clean more generated files
2008-04-05 07:33:00 +00:00
tsutsui
9252161713 Use htole32() on preparing setup packet. 2008-04-05 06:46:39 +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
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
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
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
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
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
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
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