Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
nvec_chip Struct Reference

#include <nvec.h>

Data Fields

struct devicedev
 
int gpio
 
int irq
 
int i2c_addr
 
void __iomembase
 
struct clki2c_clk
 
struct atomic_notifier_head notifier_list
 
struct list_head rx_data tx_data
 
struct notifier_block nvec_status_notifier
 
struct work_struct rx_work tx_work
 
struct workqueue_structwq
 
struct nvec_msg msg_pool [NVEC_POOL_SIZE]
 
struct nvec_msgrx
 
struct nvec_msgtx
 
struct nvec_msg tx_scratch
 
struct completion ec_transfer
 
spinlock_t tx_lock
 
spinlock_t rx_lock
 
struct mutex sync_write_mutex
 
struct completion sync_write
 
u16 sync_write_pending
 
struct nvec_msglast_sync_msg
 
int state
 

Detailed Description

struct nvec_chip - A single connection to an NVIDIA Embedded controller : The device : The same as for &struct nvec_platform_data : The IRQ of the I2C device : The address of the I2C slave : The base of the memory mapped region of the I2C device : The clock of the I2C device : Notifiers to be called on received messages, see nvec_register_notifier() : Received messages that have to be processed : Messages waiting to be sent to the controller : Internal notifier (see nvec_status_notifier()) : A work structure for the RX worker nvec_dispatch() : A work structure for the TX worker nvec_request_master() : The work queue in which and are executed : The message currently being retrieved or NULL : A pool of messages for allocation : The message currently being transferred : Used for building pseudo messages : A completion that will be completed once a message has been received (see nvec_rx_completed()) : Spinlock for modifications on : Spinlock for modifications on : A mutex for nvec_write_sync() : A completion to signal that a synchronous message is complete : The first two bytes of the request (type and subtype) : The last synchronous message. : State of our finite state machine used in nvec_interrupt()

Definition at line 157 of file nvec.h.

Field Documentation

void __iomem* base

Definition at line 162 of file nvec.h.

struct device* dev

Definition at line 158 of file nvec.h.

struct completion ec_transfer

Definition at line 174 of file nvec.h.

Definition at line 159 of file nvec.h.

int i2c_addr

Definition at line 161 of file nvec.h.

struct clk* i2c_clk

Definition at line 163 of file nvec.h.

int irq

Definition at line 160 of file nvec.h.

struct nvec_msg* last_sync_msg

Definition at line 182 of file nvec.h.

Definition at line 169 of file nvec.h.

Definition at line 164 of file nvec.h.

struct notifier_block nvec_status_notifier

Definition at line 166 of file nvec.h.

Definition at line 170 of file nvec.h.

spinlock_t rx_lock

Definition at line 176 of file nvec.h.

Definition at line 184 of file nvec.h.

struct completion sync_write

Definition at line 180 of file nvec.h.

struct mutex sync_write_mutex

Definition at line 179 of file nvec.h.

u16 sync_write_pending

Definition at line 181 of file nvec.h.

Definition at line 172 of file nvec.h.

Definition at line 165 of file nvec.h.

spinlock_t tx_lock

Definition at line 176 of file nvec.h.

struct nvec_msg tx_scratch

Definition at line 173 of file nvec.h.

Definition at line 167 of file nvec.h.

Definition at line 168 of file nvec.h.


The documentation for this struct was generated from the following file: