Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 41 lines (33 sloc) 1.332 kb
fc828ae piece of shit.
mellis authored
1 /*
2 * avrdude - A Downloader/Uploader for AVR device programmers
3 * Copyright (C) 2005 Joerg Wunsch
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19
20 /* $Id: freebsd_ppi.h,v 1.2 2005/11/29 20:20:22 joerg_wunsch Exp $ */
21
22 #ifndef freebsd_ppi_h
23 #define freebsd_ppi_h
24
25 #include <dev/ppbus/ppi.h>
26
27 #define ppi_claim(fd) {}
28
29 #define ppi_release(fd) {}
30
31 #define DO_PPI_READ(fd, reg, valp) \
32 (void)ioctl(fd, \
33 (reg) == PPIDATA? PPIGDATA: ((reg) == PPICTRL? PPIGCTRL: PPIGSTATUS), \
34 valp)
35 #define DO_PPI_WRITE(fd, reg, valp) \
36 (void)ioctl(fd, \
37 (reg) == PPIDATA? PPISDATA: ((reg) == PPICTRL? PPISCTRL: PPISSTATUS), \
38 valp)
39
40 #endif /* freebsd_ppi_h */
Something went wrong with that request. Please try again.