forked from freebsd/freebsd-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement the MMC/SD/SDIO protocol within a CAM framework. CAM's flexible queueing will make it easier to write non-storage drivers than the legacy stack. SDIO drivers from both the kernel and as userland daemons are possible, though much of that functionality will come later. Some of the CAM integration isn't complete (there are sleeps in the device probe state machine, for example), but those minor issues can be improved in-tree more easily than out of tree and shouldn't gate progress on other fronts. Appologies to reviews if specific items have been overlooked. Submitted by: Ilya Bakulin Reviewed by: emaste, imp, mav, adrian, ian Differential Review: https://reviews.freebsd.org/D4761 merge with first commit, various compile hacks.
- Loading branch information
Showing
31 changed files
with
3,731 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,6 +90,8 @@ | |
cam | ||
ata | ||
.. | ||
mmc | ||
.. | ||
nvme | ||
.. | ||
scsi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# MMCCAM is the kernel config for doing MMC on CAM development | ||
# and testing on bhyve | ||
# $FreeBSD$ | ||
|
||
include MINIMAL | ||
|
||
ident MMCCAM | ||
|
||
# Access GPT-formatted and labeled root volume | ||
options GEOM_PART_GPT | ||
options GEOM_LABEL | ||
|
||
# UART -- for bhyve console | ||
device uart | ||
|
||
# kgdb stub | ||
device bvmdebug | ||
|
||
# VirtIO support, needed for bhyve | ||
device virtio # Generic VirtIO bus (required) | ||
device virtio_pci # VirtIO PCI device | ||
device vtnet # VirtIO Ethernet device | ||
device virtio_blk # VirtIO Block device | ||
device virtio_scsi # VirtIO SCSI device | ||
device virtio_balloon # VirtIO Memory Balloon device | ||
|
||
# CAM-specific stuff | ||
device pass | ||
device scbus | ||
device da | ||
device mmccam | ||
|
||
options MMCCAM | ||
# Add CAMDEBUG stuff | ||
options CAMDEBUG | ||
options CAM_DEBUG_FLAGS=(CAM_DEBUG_INFO|CAM_DEBUG_PROBE|CAM_DEBUG_PERIPH|CAM_DEBUG_TRACE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# | ||
# BEAGLEBONE-MMCCAM | ||
# | ||
# Custom kernel for Beaglebone plus MMCCAM as opposed to the prior MMC stack. It is | ||
# present to keep it building in tree since it wouldn't work in LINT. | ||
# | ||
# $FreeBSD$ | ||
|
||
include BEAGLEBONE | ||
|
||
# Add CAMDEBUG stuff | ||
options CAMDEBUG | ||
options CAM_DEBUG_FLAGS=(CAM_DEBUG_INFO|CAM_DEBUG_PROBE|CAM_DEBUG_PERIPH|CAM_DEBUG_TRACE) | ||
|
||
# pass(4) device | ||
device pass | ||
device mmccam | ||
options MMCCAM | ||
|
||
nodevice mmc | ||
nodevice mmcsd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.