The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.7.50.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:37 2021 UTC (4 years ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +6 -2 lines
Sync with HEAD.

Revision 1.7.52.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 21:44:48 2021 UTC (4 years ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +6 -2 lines
Sync with HEAD.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Mar 25 03:44:25 2021 UTC (4 years, 1 month ago) by rin
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, 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-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +6 -2 lines
Fix tftp boot with RTL8169/8110.

When sending frame shorter than 60 octets, we add trailing \0's to
payload to construct 60-octet frame.

rge.c rev 1.4--1.7 did this tail-padding on buffer provided by caller,
which results in memory corruption if buffer is shorter than 60 bytes.

Instead, allocate temporary buffer on stack, and work on it.

This bug affects tftp_getnextblock() compiled by GCC8 and later, by
which stack layout has drastically changed. However, even with GCC7,
if tftp.c is compiled with -O0, the bug becomes tangible.

Revision 1.6.8.1: download - view: text, markup, annotated - select for diffs
Wed Sep 18 20:00:53 2013 UTC (11 years, 7 months ago) by bouyer
Branches: netbsd-6
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +26 -9 lines
Pull up following revision(s) (requested by phx in ticket #946):
	sys/arch/sandpoint/stand/altboot/rge.c: revision 1.7
	sys/arch/sandpoint/stand/altboot/brdsetup.c: revision 1.32
	sys/dev/ic/rtl8169.c: revision 1.138
QNAP V200 boards have no EEPROM for the MAC address, so all devices default
to the same address (00:e0:4c:69:20:01).
Now we read the real MAC address from the flash ROM. It is stored at the
beginning of a 512-byte block in ASCII format. Some QNAP's have a broken
ext2 file system, so we cannot look for the file ETH0.MAC_ADDR therein,
but have to search the whole flash in 512-byte steps for candidates...
Make re(4) driver always use IDR register values for its MAC address.
Some sandpoint NAS firmwares set MAC address per their
firmware settings and don't use re(4)'s EEPROM values.
Per rtl8169 manuals re(4) chip reads EEPROM automatically after
hardware reset and Linux driver also uses IDR registers,
so this change should not affect existing other boards
which actually have vaild EEPROM.
Per discussion in old tech-kern@ thread:
http://mail-index.netbsd.org/tech-kern/2012/12/01/msg014573.html
Note rtl81x9.c is still shared among rtk(4) only for a multicast function
(to avoid boring refactoring work).

Revision 1.6.12.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:28:55 2013 UTC (12 years, 1 month ago) by tls
Branches: tls-maxphys
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +26 -9 lines
resync with head

Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:05:56 2013 UTC (12 years, 3 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +26 -9 lines
sync with head

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Dec 25 17:07:06 2012 UTC (12 years, 4 months ago) by phx
Branches: MAIN
CVS tags: yamt-pagecache-base9, yamt-pagecache-base8, tls-maxphys-base-20171202, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, 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, 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, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, nick-nhusb, netbsd-9-base, netbsd-9-4-RELEASE, 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-3-RELEASE, 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, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, 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, 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, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, khorben-n900, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-futex, thorpej-cfargs
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +26 -9 lines
QNAP V200 boards have no EEPROM for the MAC address, so all devices default
to the same address (00:e0:4c:69:20:01).
Now we read the real MAC address from the flash ROM. It is stored at the
beginning of a 512-byte block in ASCII format. Some QNAP's have a broken
ext2 file system, so we cannot look for the file ETH0.MAC_ADDR therein,
but have to search the whole flash in 512-byte steps for candidates...

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Oct 30 21:08:33 2011 UTC (13 years, 5 months ago) by phx
Branches: MAIN
CVS tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, 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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, tls-maxphys, netbsd-6
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -3 lines
Added in8() and out8() to access a byte with reorder-protection.
Use it in all drivers instead of (volatile uint8_t *).

Revision 1.5.4.2: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:06:35 2011 UTC (13 years, 10 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.5.4.1: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.4.1: +396 -0 lines
Sync with HEAD.

Revision 1.2.2.4: download - view: text, markup, annotated - select for diffs
Tue May 31 03:04:16 2011 UTC (13 years, 10 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.2.2.3: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.3: +3 -2 lines
sync with head

Revision 1.5.4.1
Fri Apr 29 22:21:36 2011 UTC (13 years, 11 months ago) by jruoho
Branches: jruoho-x86intr
FILE REMOVED
Changes since revision 1.5: +0 -396 lines
file rge.c was added on branch jruoho-x86intr on 2011-06-06 09:06:35 +0000

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Apr 29 22:21:36 2011 UTC (13 years, 11 months ago) by phx
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base, cherry-xenmp
Branch point for: jruoho-x86intr
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -3 lines
When we stretch a short frame to 60 bytes in rge_send() do not return 60,
but the original frame size.

Revision 1.2.2.3: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:41:22 2011 UTC (14 years ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.2.2.2: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.2.2: +14 -15 lines
sync with head

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Apr 4 16:41:34 2011 UTC (14 years ago) by phx
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -1 lines
Make sure a frame is at least 60 bytes, as Realtek does not automatically
expand small frames.
Patch suggested by nisimura@.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Mar 27 19:09:43 2011 UTC (14 years, 1 month ago) by phx
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +11 -16 lines
Fixed PHY access.
Support 8169SC/8110SC (as found on QNAP V200 boards).
Make frame receiving work (FRAMELEN <-> FRAMESIZE).
Driver works now, but not the first time after cold start.

Revision 1.2.4.2: download - view: text, markup, annotated - select for diffs
Sun Mar 6 15:07:56 2011 UTC (14 years, 1 month ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.2.4.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.4.1: +396 -0 lines
Sync with HEAD

Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:51:47 2011 UTC (14 years, 1 month ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.2.2.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.2.1: +396 -0 lines
sync with head

Revision 1.2.4.1
Thu Jan 27 17:38:04 2011 UTC (14 years, 2 months ago) by bouyer
Branches: bouyer-quota2
FILE REMOVED
Changes since revision 1.2: +0 -396 lines
file rge.c was added on branch bouyer-quota2 on 2011-03-06 15:07:56 +0000

Revision 1.2.2.1
Thu Jan 27 17:38:04 2011 UTC (14 years, 2 months ago) by rmind
Branches: rmind-uvmplock
FILE REMOVED
Changes since revision 1.2: +0 -396 lines
file rge.c was added on branch rmind-uvmplock on 2011-03-05 20:51:47 +0000

Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Jan 27 17:38:04 2011 UTC (14 years, 2 months ago) by phx
Branches: MAIN
CVS tags: uebayasi-xip-base7, bouyer-quota2-nbase, bouyer-quota2-base
Branch point for: rmind-uvmplock, bouyer-quota2
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -3 lines
Debugging output is only visible when DEBUG is defined.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Jan 23 01:05:30 2011 UTC (14 years, 3 months ago) by nisimura
Branches: MAIN
change bootloader name to "altboot".  bump version and add README.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>