Commit Graph

215297 Commits

Author SHA1 Message Date
tteras
c577d46f00 From Götz Babin-Ebell <g.babin-ebell@novamedia.de>: Smarter X.509 subject
name compare.
2012-12-24 14:50:04 +00:00
kiyohara
8a11b9f2d3 Change name of boot image(mount point?) to 'NetBSD' from 'fd'. 2012-12-24 14:01:24 +00:00
tteras
411eef5f44 From Götz Babin-Ebell <g.babin-ebell@novamedia.de:
Require OpenSSL 0.9.8s or higher
2012-12-24 08:46:27 +00:00
kiyohara
8bf49fa18a Enable ehci and umass. (tested only Chestnut43)
Add some comment-outed devices.
Indent and reorder.
2012-12-24 07:05:24 +00:00
kiyohara
994380e457 Set some properties for ehci. 2012-12-24 06:53:26 +00:00
kiyohara
e1e6df7e0a Add more comment. 2012-12-24 06:50:35 +00:00
kiyohara
6a8ef5cf59 Statically map of devices moves to 0xc0000000 from 0x90000000. 2012-12-24 06:49:41 +00:00
kiyohara
cb96e275df Don't wait DPLL5 lock, if set to automatic mode. It is locked by 120 MHz
being supplied.
Also enable EN_USBHOST2(120MHz) in usbhost_init().
2012-12-24 06:41:02 +00:00
kiyohara
d127ce65d4 Add gpio6 to critical_devs[]. This required by some boards. 2012-12-24 06:28:55 +00:00
jakllsch
a08584ffdd SDHC_VOLTAGE_SUPP_1_8V is only valid in the presence of SDHC_EMBEDDED_SLOT.
Fixes probing of full-size 1GB Toshiba card made in 2008 that fails to
respond with a 1.8V supply.  (JMB389 (in TS-RDF1) host claims
SDHC_VOLTAGE_SUPP_1_8V but does not claim SDHC_EMBEDDED_SLOT.)
2012-12-24 06:09:50 +00:00
jakllsch
445b5303f6 Add a few more register bits from SDHCI 3.0.
Also, add comment to denote an ESDHC bit.
2012-12-24 05:43:34 +00:00
khorben
d01557a2c8 Added complete support for touchscreen calibration (see PR kern/45872).
Tested with the uts(4) driver, as well as with mice without calibration
support.

Reviewed by uwe@ (thank you!)
2012-12-24 01:29:20 +00:00
khorben
76cf3dff78 Added read-only support for touchscreen calibration (see PR kern/45872).
Tested with the uts(4) driver, as well as with mice without calibration
support.

Reviewed by uwe@ (thank you!)
2012-12-24 01:27:23 +00:00
khorben
0033dc95e8 Added a field type for signed integers. This is required when handling
touchscreen calibration values, which is about to be implemented in
wsconsctl (see PR kern/45872).

Reviewed by uwe@ (thank you!)
2012-12-24 01:20:12 +00:00
rmind
63f8748ee9 ftp-proxy: disable NPF bits for now; it will be re-done. 2012-12-24 01:14:40 +00:00
wiz
ddc483c50c Remove a superfluous quote and fix a recurring typo. 2012-12-24 00:35:56 +00:00
jakllsch
995fcf0db4 SMC_CAPS_DMA without SMC_CAPS_MULTI_SEG_DMA means we as a host driver only
can support one segment per operation.  This is not the case with SDHCI SDMA,
the only SDHCI DMA mechanism we currently support in sdhc(4).  Should fix
corrupt data on DMA-enabled SDHCI controllers claiming conformance to a SDHCI
Specification other than 1.0.
2012-12-23 22:33:09 +00:00
rmind
57ff5416fd - Add NPF version check in proplist as well, not only ioctl. Bump the version.
- Fix a bug in table entry lookup.
- Updates/fixes to the man pages.  Misc.
2012-12-23 21:01:03 +00:00
jakllsch
67d7dad798 TI_AM335X SDHCI does not need SDHC_FLAG_SINGLE_ONLY. This was
drastically hindering transfer rate performance.

I suspect SDHC_FLAG_SINGLE_ONLY is bogus on most/all other TI-flavored
SDHCI cores as well, but I am unable to confirm.
2012-12-23 18:34:01 +00:00
jakllsch
c0d7cbcbb3 The BCM2835 reference says the SDHC_HIGH_SPEED bit in SDHC_HOST_CTL is
implemented, so add SDHC_HIGH_SPEED_SUPP to the software-implemented
SDHC_CAPABILITIES register.
2012-12-23 18:26:16 +00:00
skrll
63fb283979 PR/41602
Fix a memory leak when ohci_device_setintr didn't return
USBD_NORMAL_COMPLETION.

ohci_setup_isoc always returns USBD_NORMAL_COMPLETION at the moment so
there's no chance of a leak there.
2012-12-23 17:00:13 +00:00
matt
26c0064a49 Conditional execution still takes one cycle per skipped instruction.
branch to unlikely cases instead of conditionally skipping them.
2012-12-23 13:26:21 +00:00
matt
721d83f761 Make inner loop do up 128 bytes into one shot.
Reorganize the code that deals with non-dword starts.
2012-12-23 13:24:22 +00:00
mbalmer
0f600c0e40 Add ibmcd(4) and ptcd(4) entries. 2012-12-23 09:31:46 +00:00
matt
f1811fc942 Generate the trailing mask at the start and put it and the starting address
in r11/r10 and use them as need.  Always round the length endian address to
a word boundary.  Unconditionally apply the trailing mask at the end since
it's a cheap op.
2012-12-23 03:44:24 +00:00
jakllsch
57df4d0ba0 We can't block our interrupt while sdmmc_detach_card is called, as
it can issue commands, and some host drivers have interrupt-driven
command completion.  Prevents assertion (or deadlock) upon detach
of sdhc(4) with inserted card.
2012-12-22 21:24:49 +00:00
jakllsch
cd889bc341 Revert sdmmc.c r1.18 (previous commit to this file).
It seems to have caused regressions to detaching drivers from cards at
the appropriate time.

DETACH_FORCE to sdmmc_card_detach really means the SD/SDIO card is gone,
and can not be abused to mean that the host controller disappered.
2012-12-22 20:21:09 +00:00
dsl
7d60739ae7 Fix the expansion of "$(foo-$bar}" so that IFS isn't applied when
expanding $bar.
Noted by Greg Troxel on tech-userlevel running some 'git' tests.
Should fix PR bin/47361
2012-12-22 20:15:22 +00:00
nakayama
be8b08d564 Use LDPTR macro. 2012-12-22 20:08:08 +00:00
matt
17511a3ef4 Rework considerably. Use alternating sets of registers.
(Still not faster than normal ARM code).
2012-12-22 18:58:29 +00:00
tsutsui
f836ad2f40 Sync with amd64 and i386 installcds:
>> PR/47276: ftp has https support now
(i.e. now libcrypto and libssl are required in non-crunched installcd)
2012-12-22 17:51:19 +00:00
christos
e7e7a9f768 compile without SSL 2012-12-22 16:58:51 +00:00
christos
057b4f79a5 document https support, mentioning certificates are not validated, and obey
https_proxy.
2012-12-22 16:57:09 +00:00
matt
2c76bd3255 When doing 16 bytes at a time, alternate register sets to reduce load stall
times.
2012-12-22 08:12:26 +00:00
matt
6f4687f9a5 Always round up to word lengths. 2012-12-22 08:10:40 +00:00
jakllsch
92ed62bd14 Add support for SDHCI 3.0 bus clock generation, which unlike 1.0 and 2.0
has support for non-power-of-two divisors from 1 to 1023. Additionally
restore finding the correct power-of-two divisor for standard-compliant
pre-3.0 SDHCI parts.  Also, calculate minimum divided clock for the
clkmsk-quirk parts correctly.

XXX Will future standard-compliant SDHCI versions have a SDHCI 3.0
backwards-compatible clock generator, or just SDHCI 1.0/2.0?
2012-12-22 03:56:58 +00:00
njoly
0558d8206e One semi-column is enough. 2012-12-21 19:39:48 +00:00
njoly
c15d05d6e1 Fix unknown Fi macro. 2012-12-21 19:26:39 +00:00
christos
61ea5796ed PR/47276: ftp has https support now 2012-12-21 18:11:10 +00:00
christos
c9b86c2cbb PR/47276: ftp has ssl support now. 2012-12-21 18:09:39 +00:00
christos
f9336fd862 PR/47276: Add https support 2012-12-21 18:07:36 +00:00
wiz
6192c2fd3b Set GNATS_ADDR to gnats-bugs@NetBSD.org, like in all other places.
Ok spz for admins.
Requested by Bug Hunting.
2012-12-21 09:40:17 +00:00
matt
3fdd59ce12 More optimizations (have separate 64-byte loop which alternates loads
and add of different registers).  Be more consistent on endian issues.
Use pld.
2012-12-21 06:35:34 +00:00
jakllsch
2dcbf90a93 If we get a SDMA boundary-crossing interrupt at the end of the final
segment, the transfer is not implicitly complete; we still need to wait
for the transfer complete interrupt so that we can issue new commands
successfully.

This fixes the problem my Ricoh R5C822 was having where all writes after
a larger (64KiB) write were failing because we attempted to issue CMD13
(to check the status of the aformentioned write) too soon afterwards.

I suspect this fix to apply to other Ricoh SDHCI controllers I've heard
people have had trouble with.  Sorry I didn't look at this sooner.
2012-12-20 22:56:38 +00:00
christos
b36cb96502 fix cut-n-paste. 2012-12-20 22:08:19 +00:00
christos
af7611566d - Replace the seemingly broken built-in ipf rbtree implementation with ours.
- Fix typos in comments
- Fix 2 mutex errors
From Geoff Adams
2012-12-20 21:42:27 +00:00
wiz
0d9af955c5 Typo fix. 2012-12-20 20:31:01 +00:00
wiz
4612bed094 Add missing letter and use x.y versions for Fx/Nx. 2012-12-20 20:17:26 +00:00
christos
357b749529 move flavor to misc.c because pax needs it. 2012-12-20 19:09:25 +00:00
mlelstv
821ebbb223 joerg@: just use unsigned int please 2012-12-20 18:58:37 +00:00