sdcard.c revision f2b90c3c415ff04d4adb3a54242822b41d74bfd9
/*
* 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
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* SD memory card target driver. It relies on the SDA common
* framework, and translates to SCSA. That is to say, it emulates a
* simple SCSI block device.
*
* The entire driver is a tiny shim for the SDA framework, because to
* make life simplify and reduce layering overhead, we just use implementation
* in the SDA framework.
*
* (We have to be a separate driver, unfortunately, because SDA nexus drivers
* need to support SDIO and memory targets, and there can only be one bus_ops
* per driver.)
*/
/* our entire API with SDA is miniscule */
extern void sda_mem_init(struct modlinkage *);
extern void sda_mem_fini(struct modlinkage *);
static struct dev_ops sdcard_devops = {
0,
NULL,
NULL,
NULL,
NULL, /* cb_ops */
NULL, /* bus_ops */
NULL, /* power */
NULL, /* quiesce */
};
"SD Memory Slot",
};
static struct modlinkage modlinkage = {
};
int
_init(void)
{
int rv;
return (rv);
}
return (rv);
}
int
_fini(void)
{
int rv;
return (rv);
}
return (rv);
}
int
{
}