1 | /************************************************************************** |
---|
2 | * |
---|
3 | * Copyright (c) 2013 Alcatel-Lucent |
---|
4 | * |
---|
5 | * Alcatel Lucent licenses this file to You under the Apache License, |
---|
6 | * Version 2.0 (the "License"); you may not use this file except in |
---|
7 | * compliance with the License. A copy of the License is contained the |
---|
8 | * file LICENSE at the top level of this repository. |
---|
9 | * You may also obtain a copy of the License at: |
---|
10 | * |
---|
11 | * http://www.apache.org/licenses/LICENSE-2.0 |
---|
12 | * |
---|
13 | * Unless required by applicable law or agreed to in writing, software |
---|
14 | * distributed under the License is distributed on an "AS IS" BASIS, |
---|
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
16 | * See the License for the specific language governing permissions and |
---|
17 | * limitations under the License. |
---|
18 | * |
---|
19 | ************************************************************************** |
---|
20 | * |
---|
21 | * cf.h: |
---|
22 | * |
---|
23 | * Header file supporting compact flash command. |
---|
24 | * |
---|
25 | * Original author: Ed Sutter (ed.sutter@alcatel-lucent.com) |
---|
26 | * |
---|
27 | */ |
---|
28 | |
---|
29 | #ifndef CF_BLKSIZE |
---|
30 | #define CF_BLKSIZE 512 |
---|
31 | #endif |
---|
32 | |
---|
33 | |
---|
34 | /* These two functions must be supplied by the port-specific code. |
---|
35 | */ |
---|
36 | int cfInit(int interface,int verbose); |
---|
37 | int cfRead(int interface,char *buf,int bknum,int bkcnt,int verbose); |
---|
38 | int cfWrite(int interface,char *buf,int bknum,int bkcnt,int verbose); |
---|
39 | |
---|