Coder Social home page Coder Social logo

kibab / freebsd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from freebsd/freebsd-src

6.0 6.0 0.0 1.62 GB

FreeBSD src tree

Home Page: http://www.FreeBSD.org/

License: Other

C 66.50% Shell 2.54% C++ 27.82% D 0.01% Rebol 0.01% Perl 0.80% R 0.01% Max 0.01% Java 0.01% PHP 0.01% Python 0.27% Ruby 0.01% Tcl 0.01% Objective-C 0.53% Assembly 1.42% TeX 0.01% Scala 0.01% CSS 0.02% Awk 0.06% Scilab 0.01%

freebsd's People

Contributors

alcriceedu avatar amotin avatar avg-i avatar bapt avatar bdrewery avatar bmah888 avatar bsdimp avatar bsdjhb avatar bsdphk avatar cbrueffer avatar dag-erling avatar darkhelmet433 avatar delphij avatar dimitryandric avatar emaste avatar glebius avatar gwollman avatar hselasky avatar juikim avatar kostikbel avatar markjdb avatar mjguzik avatar ngie-eign avatar pgiffuni avatar rwatson avatar sleffler avatar sparcplug avatar trasz avatar tuexen avatar zxombie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

freebsd's Issues

Deliver card-generated interrupts to userland via pass(4)

Provide a way for the userland application to subscribe for notifications about card-generated interrupts. This is necessary for prototyping the device drivers in userspace.
Note: current pass(4) implementation already has something similar with CAMIOQUEUE / CAMIOGET ioctls, although they still assume that there is a request that should be queued from the userland in the kernel. Userland uses select / kqueue on /dev/passN FD for subscribing to request completion notification. Card-generated interrupts can use the same notification mechanism.

Correctly set max transfer size as 64K

See https://reviews.freebsd.org/D12762, comment from Marius:

Side-note: Prior to UHS-II, the maximum transfer size for SDHCI is limited by the 16-bit block count register (that maximum may even shrink further depending on the re-tuning mode a particular SDHCI controller implements, though). So for !MMCCAM, shdci(4) correctly hardcodes 65535 for MMCBR_IVAR_MAX_DATA in the !re-tuning case. However, in case of MMCCAM, shdci(4) currently incorrectly sets cpi->maxio to MAXPHYS for XPT_PATH_INQ.

Suspend / Resume support

marius@ in https://reviews.freebsd.org/D12762#inline-79807:
Handling of suspend/resume in sdda(4) but also already starting in sdhci(4) in the MMCCAM case.

"You can send suspend/resume events to e. g. sdhci(4) instances via devctl(8), which should even work on ARM (but doing so with the system booted from an SD card probably isn't a good idea for starters)."

Handle MMC timeouts correctly

From marius@ comments in https://reviews.freebsd.org/D12762:
Handling of the timeout provided in mmc_switch_fill_mmcio(). Partly this needs to happen in sdhci(4), i. e. SDHCI_TIMEOUT_CONTROL needs to be set accordingly, but a counterpart to mmc_switch() of mmc_subr.c should live in CAM.

Newbus integration

Provide a way for the driver developers to probe / attach to the SDIO devices. Maybe create an sdio(4) bus that provides probe and identify methods.
This might be more robust than to rely on CAM-provided bus/target/lun notation.

Implement block mode for CMD53

Currently it's not possible to request a block transfer using CMD53 if the resulting data size exceeds 512 bytes, because the code in sdhci.c uses <= 512 block size.

Implement UHS-I support

UHS-I requires changes to initialization path to add voltage switches.
Supporting UHS will speed up I/O operations. Currently this is mostly useful for MMC/SD cards, don't know about SDIO.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.