4.104.115
Line | |
---|
1 | /* placeholder (just a shell) */ |
---|
2 | |
---|
3 | /* |
---|
4 | * RTEMS driver for Blackfin SPI |
---|
5 | * |
---|
6 | * COPYRIGHT (c) 2008 Kallisti Labs, Los Gatos, CA, USA |
---|
7 | * written by Allan Hessenflow <allanh@kallisti.com> |
---|
8 | * |
---|
9 | * The license and distribution terms for this file may be |
---|
10 | * found in the file LICENSE in this distribution or at |
---|
11 | * http://www.rtems.com/license/LICENSE. |
---|
12 | * |
---|
13 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | |
---|
17 | #ifndef _spi_h_ |
---|
18 | #define _spi_h_ |
---|
19 | |
---|
20 | |
---|
21 | #ifdef __cplusplus |
---|
22 | extern "C" { |
---|
23 | #endif |
---|
24 | |
---|
25 | |
---|
26 | typedef struct { |
---|
27 | /* parameters provided by bsp */ |
---|
28 | uint32_t freq; |
---|
29 | void *base; |
---|
30 | bool fast; |
---|
31 | /* internal use */ |
---|
32 | rtems_id irq_sema_id; |
---|
33 | } bfin_spi_softc_t; |
---|
34 | |
---|
35 | typedef struct { |
---|
36 | rtems_libi2c_bus_t bus; |
---|
37 | bfin_spi_softc_t softc; |
---|
38 | } bfin_spi_desc_t; |
---|
39 | |
---|
40 | |
---|
41 | extern rtems_libi2c_bus_ops_t bfin_spi_libi2c_bus_ops; |
---|
42 | |
---|
43 | |
---|
44 | void bfin_spi_isr(int source); |
---|
45 | |
---|
46 | |
---|
47 | #ifdef __cplusplus |
---|
48 | } |
---|
49 | #endif |
---|
50 | |
---|
51 | #endif /* _spi_h_ */ |
---|
52 | |
---|
Note: See
TracBrowser
for help on using the repository browser.