nckernel  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
fdc_single.c File Reference
#include <sys/types.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <semaphore.h>
#include <errno.h>
#include <assert.h>
#include <isr.h>
#include <interrupt.h>
#include <list.h>
#include <fdc.h>
#include <fdc_ctrl.h>
#include <ston.h>
#include <fdc_single.h>
#include <debug.h>
Include dependency graph for fdc_single.c:

Go to the source code of this file.

Data Structures

struct  fdc_key
 
struct  fdc_single
 

Functions

enum base_address fdc_single_ctrl (struct fdc_single *single)
 
enum drive_letter fdc_single_drive (struct fdc_single *single)
 
int fdc_single_fini (void)
 
struct fdc_singlefdc_single_get (enum base_address ctrl, enum drive_letter drive)
 
int fdc_single_init (void)
 
void fdc_single_initiate (struct fdc_single *single)
 
int fdc_single_is_initiated (struct fdc_single *single)
 
int fdc_single_put (struct fdc_single *single)
 
sem_t fdc_single_sem (struct fdc_single *single)
 

Function Documentation

enum base_address fdc_single_ctrl ( struct fdc_single single)

Definition at line 155 of file fdc_single.c.

References fdc_key::ctrl, and fdc_single::key.

Referenced by fdc_motor_off(), and fdc_motor_on().

Here is the caller graph for this function:

enum drive_letter fdc_single_drive ( struct fdc_single single)
int fdc_single_fini ( void  )

Definition at line 123 of file fdc_single.c.

References NULL, and ston_fini().

Here is the call graph for this function:

struct fdc_single* fdc_single_get ( enum base_address  ctrl,
enum drive_letter  drive 
)

Definition at line 130 of file fdc_single.c.

References fdc_key::ctrl, fdc_key::drv, and ston_create().

Referenced by fdc_init_ctrl().

Here is the call graph for this function:

Here is the caller graph for this function:

int fdc_single_init ( void  )

Definition at line 107 of file fdc_single.c.

References ston_ops::compare, ston_ops::create, ston_ops::destroy, EFAULT, and ston_init().

Referenced by fdc_init().

Here is the call graph for this function:

Here is the caller graph for this function:

void fdc_single_initiate ( struct fdc_single single)

Definition at line 165 of file fdc_single.c.

References fdc_single::initiated.

Referenced by fdc_init_ctrl().

Here is the caller graph for this function:

int fdc_single_is_initiated ( struct fdc_single single)

Definition at line 160 of file fdc_single.c.

References fdc_single::initiated.

Referenced by fdc_init_ctrl().

Here is the caller graph for this function:

int fdc_single_put ( struct fdc_single single)

Definition at line 140 of file fdc_single.c.

References ston_destroy().

Referenced by fdc_fini_ctrl().

Here is the call graph for this function:

Here is the caller graph for this function:

sem_t fdc_single_sem ( struct fdc_single single)

Definition at line 145 of file fdc_single.c.

References fdc_single::sem.

Referenced by fdc_read_deleted_sector(), fdc_read_id(), fdc_read_sector(), fdc_read_track(), fdc_seek(), fdc_verify(), fdc_write_deleted_sector(), and fdc_write_sector().

Here is the caller graph for this function: