Deleted Added
full compact
xlr_i2c.c (216390) xlr_i2c.c (241844)
1/*-
2 * Copyright (c) 2003-2009 RMI Corporation
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * RMI_BSD */
30
31#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2003-2009 RMI Corporation
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * RMI_BSD */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/mips/rmi/xlr_i2c.c 216390 2010-12-12 06:00:26Z jchandra $");
32__FBSDID("$FreeBSD: head/sys/mips/rmi/xlr_i2c.c 241844 2012-10-22 03:00:37Z eadler $");
33
34/*
35 * I2C driver for the Palm-BK3220 I2C Host adapter on the RMI XLR.
36 */
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/kernel.h>

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

327 return -1;
328 }
329
330 /* busy try again */
331 if (i2c_status & XLR_I2C_BUS_BUSY)
332 continue;
333
334 if (pos >= len)
33
34/*
35 * I2C driver for the Palm-BK3220 I2C Host adapter on the RMI XLR.
36 */
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/kernel.h>

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

327 return -1;
328 }
329
330 /* busy try again */
331 if (i2c_status & XLR_I2C_BUS_BUSY)
332 continue;
333
334 if (pos >= len)
335 break;;
335 break;
336 }
337 *sent = len - 1;
338 return 0;
339}
340
341
342
343static int

--- 63 unchanged lines hidden ---
336 }
337 *sent = len - 1;
338 return 0;
339}
340
341
342
343static int

--- 63 unchanged lines hidden ---