Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
init.c File Reference
#include <linux/pci.h>
#include <linux/sched.h>
#include <linux/wait.h>
#include <linux/delay.h>
#include "mei_dev.h"
#include "hw.h"
#include "interface.h"
#include <linux/mei.h>

Go to the source code of this file.

Macros

#define MEI_DEV_STATE(state)   case MEI_DEV_##state: return #state
 

Functions

const charmei_dev_state_str (int state)
 
void mei_io_list_init (struct mei_io_list *list)
 
void mei_io_list_flush (struct mei_io_list *list, struct mei_cl *cl)
 
int mei_cl_flush_queues (struct mei_cl *cl)
 
struct mei_devicemei_device_init (struct pci_dev *pdev)
 
int mei_hw_init (struct mei_device *dev)
 
void mei_reset (struct mei_device *dev, int interrupts_enabled)
 
void mei_host_start_message (struct mei_device *dev)
 
void mei_host_enum_clients_message (struct mei_device *dev)
 
void mei_allocate_me_clients_storage (struct mei_device *dev)
 
int mei_host_client_properties (struct mei_device *dev)
 
void mei_cl_init (struct mei_cl *priv, struct mei_device *dev)
 
int mei_me_cl_by_uuid (const struct mei_device *dev, const uuid_le *cuuid)
 
int mei_me_cl_update_filext (struct mei_device *dev, struct mei_cl *cl, const uuid_le *cuuid, u8 host_cl_id)
 
void mei_host_init_iamthif (struct mei_device *dev)
 
struct mei_clmei_cl_allocate (struct mei_device *dev)
 
int mei_disconnect_host_client (struct mei_device *dev, struct mei_cl *cl)
 
void mei_remove_client_from_file_list (struct mei_device *dev, u8 host_client_id)
 

Variables

const uuid_le mei_amthi_guid
 

Macro Definition Documentation

#define MEI_DEV_STATE (   state)    case MEI_DEV_##state: return #state

Function Documentation

void mei_allocate_me_clients_storage ( struct mei_device dev)

allocate_me_clients_storage - allocates storage for me clients

: the device structure

returns none.

Definition at line 442 of file init.c.

struct mei_cl* mei_cl_allocate ( struct mei_device dev)
read

Definition at line 647 of file init.c.

int mei_cl_flush_queues ( struct mei_cl cl)

mei_cl_flush_queues - flushes queue lists belonging to cl.

: the device structure : private data of the file object

Definition at line 88 of file init.c.

void mei_cl_init ( struct mei_cl priv,
struct mei_device dev 
)

Definition at line 532 of file init.c.

const char* mei_dev_state_str ( int  state)

Definition at line 27 of file init.c.

struct mei_device* mei_device_init ( struct pci_dev pdev)
read

init_mei_device - allocates and initializes the mei device structure

: The pci device structure

returns The mei_device_device pointer on success, NULL on failure.

Definition at line 130 of file init.c.

int mei_disconnect_host_client ( struct mei_device dev,
struct mei_cl cl 
)

mei_disconnect_host_client - sends disconnect message to fw from host client.

: the device structure : private data of the file object

Locking: called under "dev->device_lock" lock

returns 0 on success, <0 on failure.

Definition at line 672 of file init.c.

int mei_host_client_properties ( struct mei_device dev)

host_client_properties - reads properties for client

: the device structure

returns: < 0 - Error. = 0 - no more clients. = 1 - still have clients to send properties request.

Definition at line 483 of file init.c.

void mei_host_enum_clients_message ( struct mei_device dev)

host_enum_clients_message - host sends enumeration client request message.

: the device structure

returns none.

Definition at line 408 of file init.c.

void mei_host_init_iamthif ( struct mei_device dev)

host_init_iamthif - mei initialization iamthif client.

: the device structure

Definition at line 597 of file init.c.

void mei_host_start_message ( struct mei_device dev)

host_start_message - mei host sends start message.

: the device structure

returns none.

Definition at line 370 of file init.c.

int mei_hw_init ( struct mei_device dev)

mei_hw_init - initializes host and fw to start work.

: the device structure

returns 0 on success, <0 on failure.

Definition at line 168 of file init.c.

void mei_io_list_flush ( struct mei_io_list list,
struct mei_cl cl 
)

mei_io_list_flush - removes list entry belonging to cl.

: An instance of our list structure : private data of the file object

Definition at line 68 of file init.c.

void mei_io_list_init ( struct mei_io_list list)

mei_io_list_init - Sets up a queue list.

: An instance io list structure : the device structure

Definition at line 56 of file init.c.

int mei_me_cl_by_uuid ( const struct mei_device dev,
const uuid_le cuuid 
)

Definition at line 544 of file init.c.

int mei_me_cl_update_filext ( struct mei_device dev,
struct mei_cl cl,
const uuid_le cuuid,
u8  host_cl_id 
)

mei_me_cl_update_filext - searches for ME client guid sets client_id in mei_file_private if found : the device structure : private file structure to set client_id in : searched uuid of ME client : id of host client to be set in file private structure

returns ME client index

Definition at line 569 of file init.c.

void mei_remove_client_from_file_list ( struct mei_device dev,
u8  host_client_id 
)

mei_remove_client_from_file_list - removes file private data from device file list

: the device structure : host client id to be removed

Definition at line 742 of file init.c.

void mei_reset ( struct mei_device dev,
int  interrupts_enabled 
)

mei_reset - resets host and fw.

: the device structure : if interrupt should be enabled after reset.

Definition at line 272 of file init.c.

Variable Documentation

const uuid_le mei_amthi_guid
Initial value:
= UUID_LE(0x12f80028, 0xb4b7, 0x4b2d, 0xac,
0xa8, 0x46, 0xe0, 0xff, 0x65,
0x81, 0x4c)

Definition at line 46 of file init.c.