OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [LINUX_2_4_26_OR32/] [linux/] [linux-2.4/] [include/] [linux/] [i2c-algo-sgi.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
/*
2
 * This file is subject to the terms and conditions of the GNU General Public
3
 * License version 2 as published by the Free Software Foundation.
4
 *
5
 * Copyright (C) 2003 Ladislav Michl <ladis@linux-mips.org>
6
 */
7
 
8
#ifndef I2C_ALGO_SGI_H
9
#define I2C_ALGO_SGI_H 1
10
 
11
#include <linux/i2c.h>
12
 
13
struct i2c_algo_sgi_data {
14
        void *data;     /* private data for lowlevel routines */
15
        unsigned (*getctrl)(void *data);
16
        void (*setctrl)(void *data, unsigned val);
17
        unsigned (*rdata)(void *data);
18
        void (*wdata)(void *data, unsigned val);
19
 
20
        int xfer_timeout;
21
        int ack_timeout;
22
};
23
 
24
int i2c_sgi_add_bus(struct i2c_adapter *);
25
int i2c_sgi_del_bus(struct i2c_adapter *);
26
 
27
#endif /* I2C_ALGO_SGI_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.