The NetBSD Project

CVS log for src/sys/arch/sandpoint/stand/altboot/dsk.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / sandpoint / stand / altboot

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.19 / (download) - annotate - [select for diffs], Sat Apr 30 03:52:41 2022 UTC (9 months ago) by rin
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Fix fallout from libsa change; stand.h includes <sys/param.h> now.

Do not use NULL for integer 0.

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:40 2017 UTC (5 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.16.2.1: +4 -2 lines
Diff to previous 1.16.2.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

update from HEAD

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Sat Jan 16 10:04:05 2016 UTC (7 years ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Changes since 1.17: +5 -3 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Pull up following revision(s) (requested by phx in ticket #1059):
	sys/arch/sandpoint/include/bootinfo.h: revision 1.9
	sys/arch/sandpoint/stand/altboot/brdsetup.c: revisions 1.36, 1.37
	sys/arch/sandpoint/stand/altboot/dsk.c: revision 1.18
	sys/arch/sandpoint/stand/altboot/globals.h: revisions 1.20, 1.21
	sys/arch/sandpoint/stand/altboot/main.c: revision 1.27
	sys/arch/sandpoint/stand/altboot/siisata.c: revision 1.6
	sys/arch/sandpoint/stand/altboot/version: revision 1.8
The disk's unittag is not equal to the channel, so we need an additional
unitchan entry to make lba_read() work in all cases.
The libsa-printf() does not seem to support 64-bit output, so cast the
block number to unsigned when printing an error message.
--
Pass a name and flags precisely describing the current model and its
features via a new bootinfo node (currently Synology only). This allows
for example the configuration of model-specific temperature I2C sensors
and fan control.
Support for the Synology DS207 and DS209 drive LEDs and wait until the
2nd drive is completely powered up.
--
fix a board type check logic error that affected Linkstation and Kurobox (HG).
They were mistakenly recognized kurot4 type and ended up with kernel boot
failure.

Revision 1.17.4.1 / (download) - annotate - [select for diffs], Sun Dec 27 12:09:41 2015 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.17: +5 -3 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.18 / (download) - annotate - [select for diffs], Tue Sep 29 15:12:52 2015 UTC (7 years, 4 months ago) by phx
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.17: +5 -3 lines
Diff to previous 1.17 (colored)

The disk's unittag is not equal to the channel, so we need an additional
unitchan entry to make lba_read() work in all cases.
The libsa-printf() does not seem to support 64-bit output, so cast the
block number to unsigned when printing an error message.

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:22 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.16.12.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:07 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

Rebase.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Aug 5 17:55:20 2014 UTC (8 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-base, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Branch point for: nick-nhusb, netbsd-7
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Don't use non-literal strings as format strings.
XXX Switch to strlcpy.

Revision 1.10.2.2 / (download) - annotate - [select for diffs], Wed May 23 10:07:48 2012 UTC (10 years, 8 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.10.2.1: +14 -4 lines
Diff to previous 1.10.2.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

sync with head.

Revision 1.11.4.2 / (download) - annotate - [select for diffs], Sun Apr 29 23:04:42 2012 UTC (10 years, 9 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.11.4.1: +47 -31 lines
Diff to previous 1.11.4.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

sync to latest -current.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Apr 26 19:59:37 2012 UTC (10 years, 9 months ago) by phx
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, tls-earlyentropy
Changes since 1.15: +14 -4 lines
Diff to previous 1.15 (colored)

Multiple boot devices and/or paths may be specified, which are booted one
after another until success. When no boot device is specified altboot tries
to boot from all disk devices with a valid NetBSD disklabel, starting with
unit 0.

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:06:50 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.10: +59 -46 lines
Diff to previous 1.10 (colored)

sync with head

Revision 1.15 / (download) - annotate - [select for diffs], Mon Apr 9 12:40:55 2012 UTC (10 years, 9 months ago) by nisimura
Branch: MAIN
CVS Tags: yamt-pagecache-base4
Changes since 1.14: +34 -28 lines
Diff to previous 1.14 (colored)


Refactor disklabel decode logic.  RAIDFRAME case needs more attention
as it's not certain whether a general solution.

Revision 1.11.4.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:33:05 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.11: +26 -19 lines
Diff to previous 1.11 (colored)

merge to -current.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jan 22 13:16:54 2012 UTC (11 years ago) by phx
Branch: MAIN
CVS Tags: netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Changes since 1.13: +8 -13 lines
Diff to previous 1.13 (colored)

Cleanup in perform_atareset().

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jan 22 13:08:16 2012 UTC (11 years ago) by phx
Branch: MAIN
Changes since 1.12: +35 -23 lines
Diff to previous 1.12 (colored)

Support PATA drive configuration option (ide:N[N...]).
Wait until drives are ready after cold-start.
Wake up drives from standby mode.
A default command line can be saved to flash as initrd image.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jan 19 07:38:05 2012 UTC (11 years ago) by nisimura
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)


Change BTINFO_ROOTDEV to include boot device partition number in
its cookie field to allow a kernel to determine rootdev correctly
when kernel image is loaded from other than 'a' partition.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Nov 12 16:56:12 2011 UTC (11 years, 2 months ago) by phx
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: jmcneill-usbmp
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Add support for IT821x IDE.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Nov 1 16:32:57 2011 UTC (11 years, 3 months ago) by phx
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.9: +3 -1 lines
Diff to previous 1.9 (colored)

The Apollo family of IDE interface chips has both channels disabled by
default, so we have to enable them in a new chipfix function. Also move
the channel enable code for the 82C686B from encpcifix() to pciide.c.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Oct 30 21:08:33 2011 UTC (11 years, 3 months ago) by phx
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Added in8() and out8() to access a byte with reorder-protection.
Use it in all drivers instead of (volatile uint8_t *).

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jul 17 20:54:46 2011 UTC (11 years, 6 months ago) by joerg
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:19:38 2011 UTC (11 years, 7 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.5: +33 -13 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jun 20 19:48:05 2011 UTC (11 years, 7 months ago) by jdc
Branch: MAIN
Changes since 1.6: +26 -6 lines
Diff to previous 1.6 (colored)

Add support for booting from RAID 1.
Note, that the RAID partition must be the first partition of the disk.
Reviewed by phx@.

Revision 1.4.2.4 / (download) - annotate - [select for diffs], Sun Jun 12 00:24:07 2011 UTC (11 years, 7 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.4.2.3: +7 -7 lines
Diff to previous 1.4.2.3 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

sync with head

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jun 8 18:06:02 2011 UTC (11 years, 8 months ago) by phx
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base
Changes since 1.5: +8 -8 lines
Diff to previous 1.5 (colored)

Support disk units from multiple IDE/SATA PCI controllers.

Revision 1.5.6.2 / (download) - annotate - [select for diffs], Mon Jun 6 09:06:35 2011 UTC (11 years, 8 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.5.6.1: +523 -0 lines
Diff to previous 1.5.6.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Sync with HEAD.

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Thu Apr 21 01:41:22 2011 UTC (11 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.4.2.2: +0 -7 lines
Diff to previous 1.4.2.2 (colored) to branchpoint 1.4 (colored)

sync with head

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Sun Mar 6 15:07:55 2011 UTC (11 years, 11 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.5.2.1: +530 -0 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Sync with HEAD

Revision 1.5.6.1, Sun Mar 6 13:55:12 2011 UTC (11 years, 11 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.5: +0 -523 lines
FILE REMOVED

file dsk.c was added on branch jruoho-x86intr on 2011-06-06 09:06:35 +0000

Revision 1.5.2.1, Sun Mar 6 13:55:12 2011 UTC (11 years, 11 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.5: +0 -523 lines
FILE REMOVED

file dsk.c was added on branch bouyer-quota2 on 2011-03-06 15:07:55 +0000

Revision 1.5 / (download) - annotate - [select for diffs], Sun Mar 6 13:55:12 2011 UTC (11 years, 11 months ago) by phx
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base
Branch point for: jruoho-x86intr, cherry-xenmp, bouyer-quota2
Changes since 1.4: +1 -8 lines
Diff to previous 1.4 (colored)

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.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:51:47 2011 UTC (11 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.4.2.1: +530 -0 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored)

sync with head

Revision 1.4.2.1, Thu Feb 10 13:38:08 2011 UTC (11 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.4: +0 -530 lines
FILE REMOVED

file dsk.c was added on branch rmind-uvmplock on 2011-03-05 20:51:47 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Thu Feb 10 13:38:08 2011 UTC (11 years, 11 months ago) by nisimura
Branch: MAIN
CVS Tags: uebayasi-xip-base7, bouyer-quota2-nbase, bouyer-quota2-base
Branch point for: rmind-uvmplock
Changes since 1.3: +13 -11 lines
Diff to previous 1.3 (colored)

- some rework for PCI device enumeration.
- allow dual IDE/SATA devices.
- fix a typo of D-Link #define.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jan 27 17:38:04 2011 UTC (12 years ago) by phx
Branch: MAIN
Changes since 1.2: +5 -15 lines
Diff to previous 1.2 (colored)

Debugging output is only visible when DEBUG is defined.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jan 23 01:32:08 2011 UTC (12 years ago) by nisimura
Branch: MAIN
Changes since 1.1: +10 -11 lines
Diff to previous 1.1 (colored)

- add "ll" modifier to printf.
- be more conscious about int type propagation.
- add missing version and newvers.sh

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jan 23 01:05:30 2011 UTC (12 years ago) by nisimura
Branch: MAIN

change bootloader name to "altboot".  bump version and add README.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>