nisimura
ad5b6b45cd
- add brdsetup.c left uncomitted over half month.
...
- fixes on tlp.c; more cautious about TCH/TER/RCH/RER usage and
avoid self-pointing TER.
- stylize structs and #define order to highlight similarities and
differences.
2008-05-30 14:54:16 +00:00
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
0571a09251
porting explanation take 2 after an accidental quit from CVS editor.
...
- target differences are considered minor and adaptable by heuristics
in pci/pci_machdep.c and machdep.c.
- kernel expects sane runtime HW settings when it gains control.
All tweaks should have been completed by bootloader.
- consults stand/ for reference. The implementation will change
from time to time.
communications to power control satelite processor is to be done by
a kernel thread and sysctl knobs with help of possible user agent
deamon.
2008-04-19 02:01:03 +00:00
nisimura
ce3843236c
bootinfo usage and porting guide.
...
- Kernel expects a ptr to bootinfo structure in arg3.
- The bootinfo definition is in include/bootinfo.h
- CLOCK and CONSOLE designations are important during initial bringup
efforts. machdep.c consults memory controller parameters when no
MEMORY was specified.
- autoconf.c determines ROOTDEVICE and BOOTPATH.
- target differences
2008-04-19 01:22:35 +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
1e77327a1b
- abandon to maintain disksubr.c in favour of kern/subr_disk_mbr.c.
2008-04-09 01:56:19 +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
a6da47bdf3
- Synology DS407 is a MPC8349E product.
...
- quick comparison between 8349E-mITXE eval and DS407.
2008-04-07 16:36:50 +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
7aad948b25
- assign console on at 0x4600 for GENERIC.NAS configuration.
2008-04-07 14:40:46 +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
a59dc1792e
- add COMPAT_40
...
- add #options WAPBL for journalled BSDFFS for GENERIC.NAS
2008-04-05 04:13:48 +00:00
nisimura
1976aeb78e
add rootfs on disk bootinfo case.
2008-04-05 04:05:06 +00:00
nisimura
3bbbade04a
add some MPC824x NAS box description. obtained by googl'ing.
2008-04-05 03:39:41 +00:00
nisimura
5d92871af1
revise SDRAM SPD detect attempt for EUMB I2C debugging purpose.
2008-04-03 11:24:02 +00:00
nisimura
82460723d2
add a prelimary implementation of MPC8245 EUMB I2C.
2008-04-02 06:20:53 +00:00
tsutsui
4090172b20
Don't forget to initialize sc_dev.
2008-03-29 05:42:45 +00:00
tsutsui
048fb884fc
Split device_t and softc for MI mc146818 clock,
...
and other related misc cosmetics.
2008-03-28 19:05:49 +00:00
cube
607ead0ef4
Split device_t and softc for all com(4) devices (well, everything that
...
uses a com_softc backend). Use proper types and ansify where appropriate.
2008-03-14 15:09:09 +00:00
drochner
bb33f35f20
Since files.wscons et al. are included by ~all ports anyway, include
...
them in the mi "files" file, and remove include statements from md files.
These shouldn't pull in additional kernel code when not in use, so it
shouldn't do any harm except a risk of namespace collisions which
should be easy to fix.
2008-02-20 21:43:33 +00:00
he
663b0ebf3e
Don't include <powerpc/oea/pmap.h>, use <powerpc/pmap.h> instead.
...
Discussed with garbled@, fixes build problem for LKMs.
2008-02-14 15:21:22 +00:00
joerg
e69482d49d
Introduce device_find_by_xname and device_find_by_driver_unit to replace
...
alldevs iterations all over src.
Patch discussed with and improved on suggestioned from cube@.
2008-02-12 17:30:57 +00:00
garbled
81953d91fb
Ifdef out all the MPC601 code with PPC_OEA601. Now only arches that have the
...
possibility of running on an MPC601, are infected with all the extra code
and nops that it added.
Also, fix compilation that I broke with the pmap code, by adding
oeacpufeat to the locores of various ppc arches. Noted by mlelstv.
2008-02-05 22:31:48 +00:00
joerg
3615cf7715
Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
...
remove the conditionals and the code associated with the undef case.
2008-01-20 18:09:03 +00:00
tsutsui
db09bcc34f
Move todr_attach(9) calls from each MD attachment to MI mc146818_attach().
2008-01-10 15:17:39 +00:00
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