FreeBSD kernel CAM code
mmc_all.h
Go to the documentation of this file.
1
/*-
2
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3
*
4
* Copyright (c) 2014-2016 Ilya Bakulin. All rights reserved.
5
*
6
* Redistribution and use in source and binary forms, with or without
7
* modification, are permitted provided that the following conditions
8
* are met:
9
* 1. Redistributions of source code must retain the above copyright
10
* notice, this list of conditions and the following disclaimer.
11
* 2. Redistributions in binary form must reproduce the above copyright
12
* notice, this list of conditions and the following disclaimer in the
13
* documentation and/or other materials provided with the distribution.
14
*
15
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
*
26
* Portions of this software may have been developed with reference to
27
* the SD Simplified Specification. The following disclaimer may apply:
28
*
29
* The following conditions apply to the release of the simplified
30
* specification ("Simplified Specification") by the SD Card Association and
31
* the SD Group. The Simplified Specification is a subset of the complete SD
32
* Specification which is owned by the SD Card Association and the SD
33
* Group. This Simplified Specification is provided on a non-confidential
34
* basis subject to the disclaimers below. Any implementation of the
35
* Simplified Specification may require a license from the SD Card
36
* Association, SD Group, SD-3C LLC or other third parties.
37
*
38
* Disclaimers:
39
*
40
* The information contained in the Simplified Specification is presented only
41
* as a standard specification for SD Cards and SD Host/Ancillary products and
42
* is provided "AS-IS" without any representations or warranties of any
43
* kind. No responsibility is assumed by the SD Group, SD-3C LLC or the SD
44
* Card Association for any damages, any infringements of patents or other
45
* right of the SD Group, SD-3C LLC, the SD Card Association or any third
46
* parties, which may result from its use. No license is granted by
47
* implication, estoppel or otherwise under any patent or other rights of the
48
* SD Group, SD-3C LLC, the SD Card Association or any third party. Nothing
49
* herein shall be construed as an obligation by the SD Group, the SD-3C LLC
50
* or the SD Card Association to disclose or distribute any technical
51
* information, know-how or other confidential information to any third party.
52
*
53
* $FreeBSD$
54
*/
55
56
/*
57
* MMC function that should be visible to the CAM subsystem
58
* and are somehow useful should be declared here
59
*
60
* Like in other *_all.h, it's also a nice place to include
61
* some other transport-specific headers.
62
*/
63
64
#ifndef CAM_MMC_ALL_H
65
#define CAM_MMC_ALL_H
66
67
#include <
cam/cam_sim.h
>
68
#include <
cam/mmc/mmc.h
>
69
#include <dev/mmc/mmcreg.h>
70
71
struct
ccb_pathinq
;
72
struct
cam_sim
;
73
void
mmc_path_inq
(
struct
ccb_pathinq
*cpi,
const
char
*hba,
74
const
struct
cam_sim
*sim,
size_t
maxio);
75
void
mmccam_start_discovery
(
struct
cam_sim
*sim);
76
77
#endif
cam_sim.h
mmc.h
mmc_path_inq
void mmc_path_inq(struct ccb_pathinq *cpi, const char *hba, const struct cam_sim *sim, size_t maxio)
Definition:
mmc_xpt.c:1216
mmccam_start_discovery
void mmccam_start_discovery(struct cam_sim *sim)
Definition:
mmc_xpt.c:403
cam_sim
Definition:
cam_sim.h:91
ccb_pathinq
Definition:
cam_ccb.h:660
cam
mmc
mmc_all.h
Generated by
1.9.3