Commit Graph

493 Commits

Author SHA1 Message Date
phx
5f7cc0f228 Some code cleanup, suggested by nisimura@. 2011-03-11 17:46:30 +00:00
phx
c874b8909d Make sure the device class is IDE (class 0, subclass 1), before checking
the PCI interface for native/legacy mode. Different subclasses are always
assumed being in native mode. That makes the Acard IDE controller work.

New macros for PCI interface, revision and class.
2011-03-10 21:11:49 +00:00
phx
635fb9c2cc Check the PCI-interface for legacy/native mode, not the PCI-revision. 2011-03-09 20:35:56 +00:00
phx
64f00bc3be DLink DSM-G600 button handling.
There are no commands to reboot or poweroff a G600, though.
2011-03-09 20:33:57 +00:00
phx
cbde51df40 Driver seems to work now. Successfully booted a kernel via BOOTP and NFS on
an ST1023-compatible IC+ IP1000A chip.
2011-03-08 19:00:38 +00:00
phx
8562228c6f mkdigit() didn't work with values which have bit 31 set (>=0x80000000).
Do not cast to (int).
2011-03-07 22:18:46 +00:00
phx
948ee160e6 Renamed "stg" to "stge" as in the kernel. 2011-03-06 20:36:29 +00:00
phx
fa5740cd0f Suport for loading a kernel from memory (RAM, ROM or Flash).
The boot file path should look like "mem:<address>", where <address> is
the start address, in hex notation, of the file in memory.
2011-03-06 18:22:13 +00:00
bouyer
063f96f3c2 merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
2011-03-06 17:08:10 +00:00
phx
b79587cca2 New experimental driver for SundanceIT ST1023 / IP1000+ NICs.
PHY initialization, media select and MAC address are working, but I found no
way to make the chip transmit any frame yet (although it clears the DONE flag).

Moved DSK_DECL to globals.h, where NIF_DECL already was.
2011-03-06 13:55:12 +00:00
phx
1b9ef66f08 Revert the major number for satmgr(4) back to 100 and allocate it from
majors.powerpc, as suggested by matt@.
2011-03-01 09:17:06 +00:00
phx
efac3e47ba Build altboot.img, which fakes a Linux kernel module, loadable with "bootm",
for extremely stripped U-Boot firmware. Arguments are passed through the
"bootargs" environment variable, which is detected automatically when
using bootm.
The startup code also fixes a bug in bootm, which doesn't flush the cache
before running the image.
2011-02-26 20:11:24 +00:00
phx
a1b66a73cd Changed satmgr(4) device major number from 100 to 144, which is reserved
for local/vendor use according to src/sys/conf/majors. This prevents
problems when the shared PowerPC device majors list gets another entry.
2011-02-26 09:52:16 +00:00
phx
356132d33a Print "interrupting at". Improved style guide conformance. 2011-02-24 19:32:34 +00:00
nisimura
2a814b26a9 - remove the mangled lines of the previous commit.
- withdraw DS407 description for now as pieces of info are conflicting
  and remain uncertain.
2011-02-14 13:05:00 +00:00
nisimura
3a5f9065a4 add Thecus N3200 to the research list. Along with N1200 they use
MPC8347 single PCI SoC.
2011-02-14 12:36:38 +00:00
nisimura
e7b1b1b97d add EPIC definition for Netronics NH230/NH231 and the brothers. 2011-02-14 09:00:04 +00:00
nisimura
01a00b1b9a - add preliminary Netronics NH230 and NH231 supports.
- assign PCI configuration register 0x3c with IDSEL value by PCI framework,
  eliminating most of pcifixup() logic in simple NASes.
2011-02-14 06:21:29 +00:00
phx
1d0441d004 Added a note that only the Rev.B is supported for D-Link DSM-G600. 2011-02-13 20:39:11 +00:00
phx
0b5b6e489b uvideo works, so include it 2011-02-13 20:37:26 +00:00
nisimura
4ac8cbf6c5 add Thecus N1200 NAS information. It looks a fairly close sibling
of Freescale MPC8349mITX eval featuring I2C controlled satellite MCU.
2011-02-12 03:25:37 +00:00
phx
0afe193f6d Sorted out NH230 based bords. Added NH230 IRQ mapping.
LevelOne FNS-5000B seems identical to QNAP TS-201.
2011-02-11 12:26:04 +00:00
phx
7997b707ad Fixed typo. Added AMS150. 2011-02-10 17:11:33 +00:00
nisimura
336f46057f - add D-Link EPIC defition to pci_machdep.c
- change the way to reboot/pwroff to make satmgr.c more flexible for
  a multiple byte sat protocol.
2011-02-10 13:54:45 +00:00
nisimura
02a02bc0e7 - some rework for PCI device enumeration.
- allow dual IDE/SATA devices.
- fix a typo of D-Link #define.
2011-02-10 13:38:08 +00:00
phx
c08a223c49 Added LevelOne NASCon and some Nettronix based devices. 2011-02-08 12:21:26 +00:00
nisimura
4ef0ac7ab4 - add preliminary code to support D-Link DSM-G600 rev.B NAS.
- it features 9600bps console, Moto MCU on the 2nd DUART channel,
  ACARD ATP865 PCIIDE and IP Plus IP1000A GbE.  It has MiniPCI
  slot.
2011-02-08 00:33:05 +00:00
phx
9db32a0d38 StorCenter models are called 250, 500 and 1T. 2011-02-07 19:20:35 +00:00
nisimura
908c083e0e - add D-Link GSM-G600 info. IP1000A is supposed a member of stge(4).
- move StorCenter info as it looks correct.
2011-02-07 15:58:35 +00:00
nisimura
c4da6fc812 add StorCenter heuristic by PCI vendor ID detection. 2011-02-07 13:35:21 +00:00
nisimura
0bc06ff35b add Dallas I2C RTC driver for StorCenter, leaving it commented out for now. 2011-02-07 12:51:18 +00:00
nisimura
bf1aad3bf0 add IOMEGA StorCenter fixup codes. Need more change as the satellite
microcontroller protocol is defined in 8-byte fixed length sequence.
2011-02-07 12:45:21 +00:00
phx
3a340652fb Included sys/arc/sandpoint/stand/altboot in the build process.
Install altboot and altboot.bin in /usr/mdec and copy them also into the
installation directory of the sandpoint release.
2011-01-28 22:15:35 +00:00
phx
f752ef7556 Debugging output is only visible when DEBUG is defined. 2011-01-27 17:38:04 +00:00
phx
3e7ea907ca Some cleanup. No functional change. 2011-01-27 16:13:51 +00:00
nisimura
717da00c62 remove an excess echo line accidentally creeped in. 2011-01-27 04:54:40 +00:00
nisimura
5311358b9c arrange vers.c generation to honour MKREPRO for global build control. 2011-01-27 04:32:49 +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
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
785ee28dab switch to use newvers_stand.sh as suggested by joerg@ 2011-01-23 07:41:38 +00:00
nisimura
54f1d6dfb4 fix a failure in the sign extension consideration. 2011-01-23 02:08:24 +00:00
nisimura
8c432abc24 - add "ll" modifier to printf.
- be more conscious about int type propagation.
- add missing version and newvers.sh
2011-01-23 01:32:08 +00:00
nisimura
b75de01970 change bootloader name to "altboot". bump version and add README. 2011-01-23 01:05:29 +00:00
joerg
3c550524b5 Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh.  Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
2011-01-22 19:19:14 +00:00
nisimura
d8d2bb5d28 - make sure to wait for BUSY bit goes down prior to each 512B block
read from xfer register, or corrupted datum may be retrieved.  Uncovered
by corrected PIO READ_CMD value.
- remove redundant register assignments to set transfer mode.
2011-01-22 00:32:41 +00:00
matt
51db1c5cf3 Kill _NOREGNAMES. Everything should be using %rX now. If it doesn't it
soon will.
2011-01-17 08:23:53 +00:00
phx
c6e30a94f2 Add some USB devices, which I tested successfully.
Replace tab by blank after a device name, where it was forgotten.
2011-01-15 23:06:07 +00:00
phx
6f325f1347 Configure transfer mode registers to PIO mode. It seems to work without, but
just to be on the safe side.
2011-01-13 21:54:14 +00:00
phx
d7e7e38c1b Rewritten to take advantage of the new MI motoi2c code. 2011-01-12 18:09:03 +00:00
nisimura
9fb96e0290 - remove duplicate an opt include line.
- restore a lost indent.
2011-01-12 07:38:43 +00:00