iiconf.h (efce3748f32e713bcb1fba45b021e843760e6fac) | iiconf.h (d1e99670ae56b733bfffe627047eb0a552b5ac7e) |
---|---|
1/*- 2 * Copyright (c) 1998, 2001 Nicolas Souchu 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 --- 68 unchanged lines hidden (view full) --- 77#define INTR_TRANSMIT 0x5 /* character to transmit */ 78#define INTR_ERROR 0x6 /* error */ 79#define INTR_NOACK 0x7 /* no ack from master receiver */ 80 81/* 82 * adapter layer errors 83 */ 84#define IIC_NOERR 0x0 /* no error occured */ | 1/*- 2 * Copyright (c) 1998, 2001 Nicolas Souchu 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 --- 68 unchanged lines hidden (view full) --- 77#define INTR_TRANSMIT 0x5 /* character to transmit */ 78#define INTR_ERROR 0x6 /* error */ 79#define INTR_NOACK 0x7 /* no ack from master receiver */ 80 81/* 82 * adapter layer errors 83 */ 84#define IIC_NOERR 0x0 /* no error occured */ |
85#define IIC_EBUSERR 0x1 /* bus error */ | 85#define IIC_EBUSERR 0x1 /* bus error (hardware not in expected state) */ |
86#define IIC_ENOACK 0x2 /* ack not received until timeout */ 87#define IIC_ETIMEOUT 0x3 /* timeout */ | 86#define IIC_ENOACK 0x2 /* ack not received until timeout */ 87#define IIC_ETIMEOUT 0x3 /* timeout */ |
88#define IIC_EBUSBSY 0x4 /* bus busy */ | 88#define IIC_EBUSBSY 0x4 /* bus busy (reserved by another client) */ |
89#define IIC_ESTATUS 0x5 /* status error */ 90#define IIC_EUNDERFLOW 0x6 /* slave ready for more data */ 91#define IIC_EOVERFLOW 0x7 /* too much data */ 92#define IIC_ENOTSUPP 0x8 /* request not supported */ 93#define IIC_ENOADDR 0x9 /* no address assigned to the interface */ 94 95extern int iicbus_request_bus(device_t, device_t, int); 96extern int iicbus_release_bus(device_t, device_t); --- 44 unchanged lines hidden --- | 89#define IIC_ESTATUS 0x5 /* status error */ 90#define IIC_EUNDERFLOW 0x6 /* slave ready for more data */ 91#define IIC_EOVERFLOW 0x7 /* too much data */ 92#define IIC_ENOTSUPP 0x8 /* request not supported */ 93#define IIC_ENOADDR 0x9 /* no address assigned to the interface */ 94 95extern int iicbus_request_bus(device_t, device_t, int); 96extern int iicbus_release_bus(device_t, device_t); --- 44 unchanged lines hidden --- |