Commit Graph

215434 Commits

Author SHA1 Message Date
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
christos
3afc22d858 Implement the "flavor" output discussed in tech-userlevel@, by Brooks Davis 2012-12-20 16:43:16 +00:00
jakllsch
fa9acd1bd7 Add detachment support for sdhc_pci.
Tested on an ExpressCard JMicron JMB38[89] with as-of-yet-uncommitted changes.
2012-12-20 14:41:35 +00:00
jakllsch
5e095f2d56 Change sdhc_detach so that it detaches all host controllers at once.
This should make multiple slot controllers, for example those with
a controller on more than one PCI/CardBus BAR, detach with fewer bugs.
Tested with as-of-yet-uncommited sdhc_pci changes on a single-host
ExpressCard JMicron JMB38[89].
2012-12-20 14:37:00 +00:00
jakllsch
36816376fd Only use DETACH_FORCE as flags argument to sdmmc_card_detach when the
host controller has disappeared or is detaching.
XXX should pass flags from sdmmc_detach through to the task thread ending
to differentiate host controller disappearance from mere detachment.
2012-12-20 14:24:11 +00:00
hannken
1a15b095d2 Revert rev. 1.20 now that bread() has been fixed.
PR kern/46282 (6.0_BETA crash: msdosfs_bmap -> pcbmap -> bread -> bio_doread)
2012-12-20 11:44:39 +00:00
plunky
f99a352229 increase some diagnostics 2012-12-20 11:17:47 +00:00
plunky
6ea27368df when no link-mode is specified, explicitly set a mode of (int)0
otherwise l2cap_setmode() will fail during connection setup

for bthidev.c, this fixes a problem with Microsoft Wedge Touch
mouse (which may not be able to authenticate)

for btmagic.c, include this fix in case somebody tries that

related to PR/47286
2012-12-20 11:13:53 +00:00
msaitoh
a23ec4c8a4 Check wheter an MII PHY is really connected or not.
This change privents panic if MII PHY port is not used.
2012-12-20 10:01:28 +00:00
hannken
312d89f0de Change bread() and breadn() to never return a buffer on
error and modify all callers to not brelse() on error.

Welcome to 6.99.16

PR kern/46282 (6.0_BETA crash: msdosfs_bmap -> pcbmap -> bread -> bio_doread)
2012-12-20 08:03:41 +00:00
matt
4ccd5607a0 Add fast path for dealing with a single 32-bit word at the end. 2012-12-20 08:03:21 +00:00
matt
c0946adbff Add $NetBSD$ 2012-12-20 07:20:04 +00:00
matt
69105f68aa Make this work. Various fixes and some further optimizations. 2012-12-20 07:18:33 +00:00
matt
6fd79daca4 Move loading of r1 with 0xffff to cpu_in_cksum_fold.S 2012-12-20 07:16:00 +00:00