annotate packages/devs/disk/generic/mmc/current/cdl/devs_disk_mmc.cdl @ 2729:74dbf4c3f2e1 after-copyright-change-20090129

Update all copyright banners to reflect FSF ownership; fix and improve licence text.
author jlarmour
date Thu, 29 Jan 2009 17:47:46 +0000
parents 41a4df71f380
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2301
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
1 # ====================================================================
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
2 #
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
3 # devs_disk_mmc.cdl
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
4 #
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
5 # Support for MMC cards
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
6 #
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
7 # ====================================================================
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
8 ## ####ECOSGPLCOPYRIGHTBEGIN####
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
9 ## -------------------------------------------
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
10 ## This file is part of eCos, the Embedded Configurable Operating System.
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
11 ## Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
2301
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
12 ##
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
13 ## eCos is free software; you can redistribute it and/or modify it under
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
14 ## the terms of the GNU General Public License as published by the Free
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
15 ## Software Foundation; either version 2 or (at your option) any later
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
16 ## version.
2301
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
17 ##
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
18 ## eCos is distributed in the hope that it will be useful, but WITHOUT
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
19 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
20 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
21 ## for more details.
2301
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
22 ##
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
23 ## You should have received a copy of the GNU General Public License
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
24 ## along with eCos; if not, write to the Free Software Foundation, Inc.,
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
25 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2301
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
26 ##
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
27 ## As a special exception, if other files instantiate templates or use
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
28 ## macros or inline functions from this file, or you compile this file
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
29 ## and link it with other works to produce a work based on this file,
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
30 ## this file does not by itself cause the resulting work to be covered by
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
31 ## the GNU General Public License. However the source code for this file
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
32 ## must still be made available in accordance with section (3) of the GNU
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
33 ## General Public License v2.
2301
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
34 ##
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
35 ## This exception does not invalidate any other reasons why a work based
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
36 ## on this file might be covered by the GNU General Public License.
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
37 ## -------------------------------------------
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2534
diff changeset
38 ## ####ECOSGPLCOPYRIGHTEND####
2301
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
39 # ====================================================================
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
40 ######DESCRIPTIONBEGIN####
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
41 #
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
42 # Author(s): bartv,jlarmour
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
43 # Date: 2004-04-25
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
44 #
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
45 #####DESCRIPTIONEND####
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
46 # ====================================================================
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
47
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
48 cdl_package CYGPKG_DEVS_DISK_MMC {
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
49 display "Disk driver for MMC cards"
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
50 doc ecos-ref/devs-disk-mmc-part.html
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
51
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
52 include_dir cyg/io
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
53
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
54 parent CYGPKG_IO_DISK_DEVICES
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
55 active_if CYGPKG_IO_DISK
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
56
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
57 cdl_interface CYGINT_DEVS_DISK_MMC_SPI_CONNECTORS {
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
58 active_if CYGPKG_IO_SPI
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
59 display "Number of MMC connectors accessed via SPI"
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
60 }
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
61
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
62 cdl_component CYGPKG_DEVS_DISK_MMC_SPI {
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
63 display "Access an MMC card via an SPI bus"
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
64 default_value { CYGINT_DEVS_DISK_MMC_SPI_CONNECTORS > 0 }
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
65 compile -library=libextras.a mmc_spi.c
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
66 requires CYGPKG_ERROR CYGPKG_LIBC_STRING
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
67 description "
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
68 This option enables support for accessing an MMC card via an
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
69 SPI bus."
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
70
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
71 define_proc {
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
72 puts $::cdl_system_header "/***** MMC/SPI disk driver output start *****/"
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
73 puts $::cdl_system_header "#ifndef CYGDAT_DEVS_DISK_CFG"
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
74 puts $::cdl_system_header "#define CYGDAT_DEVS_DISK_CFG <pkgconf/devs_disk_mmc.h>"
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
75 puts $::cdl_system_header "#endif"
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
76 puts $::cdl_system_header "/***** MMC/SPI disk driver output end *****/"
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
77 }
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
78
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
79 cdl_option CYGDAT_DEVS_DISK_MMC_SPI_DISK0_NAME {
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
80 display "Device name for the MMC/SPI disk 0 device"
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
81 flavor data
2534
41a4df71f380 * cdl/devs_disk_mmc.cdl: Renamed the device to /dev/mmcdiskX so
asl
parents: 2390
diff changeset
82 default_value { "\"/dev/mmcdisk0/\"" }
2301
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
83 description "
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
84 This is the device name used to access the raw disk device
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
85 in eCos, for example for mount operations. Note that the
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
86 trailing slash must be present."
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
87 }
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
88 }
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
89
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
90 cdl_option CYGIMP_DEVS_DISK_MMC_SPI_POLLED {
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
91 display "Run the driver in polled mode rather than interrupt-driven"
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
92 default_value !CYGPKG_KERNEL
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
93 description "
2534
41a4df71f380 * cdl/devs_disk_mmc.cdl: Renamed the device to /dev/mmcdiskX so
asl
parents: 2390
diff changeset
94 By default the MMC disk driver will operate in
41a4df71f380 * cdl/devs_disk_mmc.cdl: Renamed the device to /dev/mmcdiskX so
asl
parents: 2390
diff changeset
95 interrupt-driven mode if the kernel is present,
41a4df71f380 * cdl/devs_disk_mmc.cdl: Renamed the device to /dev/mmcdiskX so
asl
parents: 2390
diff changeset
96 i.e. if the application is likely to be
41a4df71f380 * cdl/devs_disk_mmc.cdl: Renamed the device to /dev/mmcdiskX so
asl
parents: 2390
diff changeset
97 multi-threaded. Otherwise it will operate in polled
41a4df71f380 * cdl/devs_disk_mmc.cdl: Renamed the device to /dev/mmcdiskX so
asl
parents: 2390
diff changeset
98 mode."
41a4df71f380 * cdl/devs_disk_mmc.cdl: Renamed the device to /dev/mmcdiskX so
asl
parents: 2390
diff changeset
99
2301
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
100 }
2534
41a4df71f380 * cdl/devs_disk_mmc.cdl: Renamed the device to /dev/mmcdiskX so
asl
parents: 2390
diff changeset
101 cdl_option CYGPKG_DEVS_DISK_MMC_SPI_IDLE_RETRIES_WAIT {
41a4df71f380 * cdl/devs_disk_mmc.cdl: Renamed the device to /dev/mmcdiskX so
asl
parents: 2390
diff changeset
102 display "Idle to operational retry wait"
41a4df71f380 * cdl/devs_disk_mmc.cdl: Renamed the device to /dev/mmcdiskX so
asl
parents: 2390
diff changeset
103 flavor booldata
41a4df71f380 * cdl/devs_disk_mmc.cdl: Renamed the device to /dev/mmcdiskX so
asl
parents: 2390
diff changeset
104 default_value 10000
41a4df71f380 * cdl/devs_disk_mmc.cdl: Renamed the device to /dev/mmcdiskX so
asl
parents: 2390
diff changeset
105 description "
41a4df71f380 * cdl/devs_disk_mmc.cdl: Renamed the device to /dev/mmcdiskX so
asl
parents: 2390
diff changeset
106
41a4df71f380 * cdl/devs_disk_mmc.cdl: Renamed the device to /dev/mmcdiskX so
asl
parents: 2390
diff changeset
107 This option sets how long to wait between retries of
41a4df71f380 * cdl/devs_disk_mmc.cdl: Renamed the device to /dev/mmcdiskX so
asl
parents: 2390
diff changeset
108 attempts to change the card state from idle to
41a4df71f380 * cdl/devs_disk_mmc.cdl: Renamed the device to /dev/mmcdiskX so
asl
parents: 2390
diff changeset
109 operational. It is measured in microseconds."
41a4df71f380 * cdl/devs_disk_mmc.cdl: Renamed the device to /dev/mmcdiskX so
asl
parents: 2390
diff changeset
110 }
2301
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
111 }
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
112
67647617a206 Add MMC/SPI package contribution from eCosCentric
jlarmour
parents:
diff changeset
113 # EOF devs_disk_mmc.cdl