mmcbr_if.m (302408) | mmcbr_if.m (318197) |
---|---|
1#- 2# Copyright (c) 2006 M. Warner Losh 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 36 unchanged lines hidden (view full) --- 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# | 1#- 2# Copyright (c) 2006 M. Warner Losh 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 36 unchanged lines hidden (view full) --- 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: stable/11/sys/dev/mmc/mmcbr_if.m 170002 2007-05-26 05:23:36Z imp $ | 53# $FreeBSD: stable/11/sys/dev/mmc/mmcbr_if.m 318197 2017-05-11 20:55:11Z marius $ |
54# 55 56#include <sys/types.h> 57#include <dev/mmc/bridge.h> 58#include <dev/mmc/mmcreg.h> 59 60# 61# This is the interface that a mmc bridge chip gives to the mmc bus 62# that attaches to the mmc bridge. 63# 64 65INTERFACE mmcbr; 66 67# | 54# 55 56#include <sys/types.h> 57#include <dev/mmc/bridge.h> 58#include <dev/mmc/mmcreg.h> 59 60# 61# This is the interface that a mmc bridge chip gives to the mmc bus 62# that attaches to the mmc bridge. 63# 64 65INTERFACE mmcbr; 66 67# |
68# Called by the mmcbus to setup the IO pins correctly, the voltage to use 69# for the card, the type of selects, power modes and bus width. | 68# Called by the mmcbus to set up the IO pins correctly, the common/core 69# supply voltage (VDD/VCC) to use for the device, the clock frequency, the 70# type of SPI chip select, power mode and bus width. |
70# 71METHOD int update_ios { 72 device_t brdev; 73 device_t reqdev; 74}; 75 76# 77# Called by the mmcbus or its children to schedule a mmc request. These 78# requests are queued. Time passes. The bridge then gets notification | 71# 72METHOD int update_ios { 73 device_t brdev; 74 device_t reqdev; 75}; 76 77# 78# Called by the mmcbus or its children to schedule a mmc request. These 79# requests are queued. Time passes. The bridge then gets notification |
79# of the status of request, who then notifies the requesting device via 80# the xfer_done mmcbus method. | 80# of the status of the request, who then notifies the requesting device 81# by calling the completion function supplied as part of the request. |
81# 82METHOD int request { 83 device_t brdev; 84 device_t reqdev; 85 struct mmc_request *req; 86}; 87 88# --- 23 unchanged lines hidden --- | 82# 83METHOD int request { 84 device_t brdev; 85 device_t reqdev; 86 struct mmc_request *req; 87}; 88 89# --- 23 unchanged lines hidden --- |