/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
/*
* SD card host support. This is the API that host drivers access.
*/
/*
* Implementation.
*/
void
{
}
void
{
}
{
sda_host_t *h;
return (NULL);
}
h = kmem_zalloc(sizeof (*h), KM_SLEEP);
/* initialize each slot */
for (int i = 0; i < nslot; i++) {
slot->s_slot_num = i;
}
return (h);
}
void
{
for (int i = 0; i < h->h_nslot; i++) {
sda_slot_fini(&h->h_slots[i]);
}
kmem_free(h, sizeof (*h));
}
void
{
}
int
{
/*
* Attach slots.
*/
for (int i = 0; i < h->h_nslot; i++) {
sda_slot_attach(&h->h_slots[i]);
/*
* Initiate card detection.
*/
sda_host_detect(h, i);
}
return (DDI_SUCCESS);
}
void
{
/*
* Detach slots.
*/
for (int i = 0; i < h->h_nslot; i++) {
sda_slot_detach(&h->h_slots[i]);
}
}
void
{
for (int i = 0; i < h->h_nslot; i++) {
sda_slot_suspend(&h->h_slots[i]);
}
}
void
{
for (int i = 0; i < h->h_nslot; i++) {
sda_slot_resume(&h->h_slots[i]);
}
}
void
{
}
void
{
}
void
{
}
void
{
if (h != NULL) {
} else {
}
}