Deleted Added
full compact
cudavar.h (186046) cudavar.h (205506)
1/*-
2 * Copyright (c) 2006 Michael Lorenz
3 * Copyright (c) 2008 Nathan Whitehorn
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:

--- 13 unchanged lines hidden (view full) ---

22 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 * POSSIBILITY OF SUCH DAMAGE.
29 *
1/*-
2 * Copyright (c) 2006 Michael Lorenz
3 * Copyright (c) 2008 Nathan Whitehorn
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:

--- 13 unchanged lines hidden (view full) ---

22 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 * POSSIBILITY OF SUCH DAMAGE.
29 *
30 * $FreeBSD: head/sys/powerpc/powermac/cudavar.h 186046 2008-12-13 18:49:01Z nwhitehorn $
30 * $FreeBSD: head/sys/powerpc/powermac/cudavar.h 205506 2010-03-23 03:14:44Z nwhitehorn $
31 *
32 */
33
34#ifndef _POWERPC_CUDAVAR_H_
35#define _POWERPC_CUDAVAR_H_
36
37#define CUDA_DEVSTR "Apple CUDA I/O Controller"
38#define CUDA_MAXPACKETS 10

--- 46 unchanged lines hidden (view full) ---

85 device_t adb_bus;
86
87 int sc_node;
88 volatile int sc_state;
89 int sc_waiting;
90 int sc_polling;
91 int sc_iic_done;
92 volatile int sc_autopoll;
31 *
32 */
33
34#ifndef _POWERPC_CUDAVAR_H_
35#define _POWERPC_CUDAVAR_H_
36
37#define CUDA_DEVSTR "Apple CUDA I/O Controller"
38#define CUDA_MAXPACKETS 10

--- 46 unchanged lines hidden (view full) ---

85 device_t adb_bus;
86
87 int sc_node;
88 volatile int sc_state;
89 int sc_waiting;
90 int sc_polling;
91 int sc_iic_done;
92 volatile int sc_autopoll;
93 uint32_t sc_rtc;
93
94 int sc_i2c_read_len;
95
96 /* internal buffers */
97 uint8_t sc_in[256];
98 uint8_t sc_out[256];
99 int sc_sent;
100 int sc_out_length;
101 int sc_received;
102
103 struct cuda_packet sc_pkts[CUDA_MAXPACKETS];
104 struct cuda_pktq sc_inq;
105 struct cuda_pktq sc_outq;
106 struct cuda_pktq sc_freeq;
107};
108
109#endif /* _POWERPC_CUDAVAR_H_ */
94
95 int sc_i2c_read_len;
96
97 /* internal buffers */
98 uint8_t sc_in[256];
99 uint8_t sc_out[256];
100 int sc_sent;
101 int sc_out_length;
102 int sc_received;
103
104 struct cuda_packet sc_pkts[CUDA_MAXPACKETS];
105 struct cuda_pktq sc_inq;
106 struct cuda_pktq sc_outq;
107 struct cuda_pktq sc_freeq;
108};
109
110#endif /* _POWERPC_CUDAVAR_H_ */