Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

ddv_util.c File Reference

#include <linux/module.h>
#include <linux/blk.h>
#include <linux/genhd.h>
#include <asm/pgtable.h>
#include <asm/ap1000/apreg.h>
#include <asm/ap1000/DdvReqTable.h>

Include dependency graph for ddv_util.c:

Go to the source code of this file.

Defines

#define __NO_VERSION__
#define GENDISK_STRUCT   ddv_gendisk

Functions

int ddv_mlist_available (void)
int ddv_get_mlist (unsigned mptr[], int bnum)
void ddv_load_kernel (char *opcodep)
int ddv_restart_cpu (void)

Variables

RequestTableRTable = NULL
OPrintBufArrayPrintBufs = NULL
OAlignBufArrayAlignBufs = NULL
DiskInfoDiskInfo = NULL
int ddv_length []


Define Documentation

#define __NO_VERSION__
 

Definition at line 8 of file ddv_util.c.

#define GENDISK_STRUCT   ddv_gendisk
 

Definition at line 17 of file ddv_util.c.

Referenced by revalidate_acsidisk(), and revalidate_hddisk().


Function Documentation

int ddv_get_mlist unsigned  mptr[],
int  bnum
 

Definition at line 37 of file ddv_util.c.

References available, ddv_mlist_available(), i, INC_ML(), RequestTable::mtable, panic(), phys, start, and RequestTable::start_mtable.

Referenced by ddv_request1().

Here is the call graph for this function:

void ddv_load_kernel char *  opcodep  ) 
 

Definition at line 60 of file ddv_util.c.

References memcpy, memset, OPIBUS_BASE, p, PAGE_SIZE, and printk.

Referenced by ddv_load_opiu().

int ddv_mlist_available void   ) 
 

Definition at line 26 of file ddv_util.c.

References end, RequestTable::end_mtable, MTABLE_SIZE, start, and RequestTable::start_mtable.

Referenced by ddv_get_mlist(), and ddv_request1().

int ddv_restart_cpu void   ) 
 

Definition at line 84 of file ddv_util.c.

References DiskInfo::blk_size, DiskInfo::blocks, jiffies, OPIBUS_BASE, OPIU_OP, OPIU_RESET, OPT_IO, PBUF0, printk, PRST, PRST_IRST, DiskInfo::ptrs, time_before, and timeout.

Referenced by ddv_load_opiu().


Variable Documentation

struct OAlignBufArray* AlignBufs = NULL
 

Definition at line 21 of file ddv_util.c.

int ddv_length[]
 

struct DiskInfo* DiskInfo = NULL
 

Definition at line 22 of file ddv_util.c.

struct OPrintBufArray* PrintBufs = NULL
 

Definition at line 20 of file ddv_util.c.

struct RequestTable* RTable = NULL
 

Definition at line 19 of file ddv_util.c.