pcfvar.h (181303) | pcfvar.h (194026) |
---|---|
1/*- 2 * Copyright (c) 1998 Nicolas Souchu, Marc Bouget 3 * Copyright (c) 2004 Joerg Wunsch 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/*- 2 * Copyright (c) 1998 Nicolas Souchu, Marc Bouget 3 * Copyright (c) 2004 Joerg Wunsch 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/dev/pcf/pcfvar.h 181303 2008-08-04 20:46:15Z jhb $ | 27 * $FreeBSD: head/sys/dev/pcf/pcfvar.h 194026 2009-06-11 17:15:44Z avg $ |
28 */ 29 30#ifndef __PCFVAR_H__ 31#define __PCFVAR_H__ 32 33#define IO_PCFSIZE 2 34 35#define TIMEOUT 9999 /* XXX */ --- 94 unchanged lines hidden (view full) --- 130 pcf_nops(); 131 132 return (data); 133} 134 135extern int pcf_repeated_start(device_t, u_char, int); 136extern int pcf_start(device_t, u_char, int); 137extern int pcf_stop(device_t); | 28 */ 29 30#ifndef __PCFVAR_H__ 31#define __PCFVAR_H__ 32 33#define IO_PCFSIZE 2 34 35#define TIMEOUT 9999 /* XXX */ --- 94 unchanged lines hidden (view full) --- 130 pcf_nops(); 131 132 return (data); 133} 134 135extern int pcf_repeated_start(device_t, u_char, int); 136extern int pcf_start(device_t, u_char, int); 137extern int pcf_stop(device_t); |
138extern int pcf_write(device_t, char *, int, int *, int); | 138extern int pcf_write(device_t, const char *, int, int *, int); |
139extern int pcf_read(device_t, char *, int, int *, int, int); 140extern int pcf_rst_card(device_t, u_char, u_char, u_char *); 141extern driver_intr_t pcf_intr; 142 143#define PCF_MODVER 1 144#define PCF_MINVER 1 145#define PCF_MAXVER 1 146#define PCF_PREFVER PCF_MODVER 147 148#endif /* !__PCFVAR_H__ */ | 139extern int pcf_read(device_t, char *, int, int *, int, int); 140extern int pcf_rst_card(device_t, u_char, u_char, u_char *); 141extern driver_intr_t pcf_intr; 142 143#define PCF_MODVER 1 144#define PCF_MINVER 1 145#define PCF_MAXVER 1 146#define PCF_PREFVER PCF_MODVER 147 148#endif /* !__PCFVAR_H__ */ |