Main Page | Directories | File List | Globals

blkreq.c File Reference

#include <agnix/agnix.h>
#include <agnix/irq.h>
#include <agnix/adi/adi.h>
#include <agnix/memory.h>
#include <agnix/ioport.h>
#include <agnix/list.h>
#include <agnix/spinlock.h>
#include <agnix/console.h>

Include dependency graph for blkreq.c:

Go to the source code of this file.

Defines

#define MOD_NAME   "BLKREQ: "

Functions

int blkreq_build (struct adi_blkreq_s *blkreq, u16 req_dev, u32 req_block, u32 req_len)
int blkreq_queue (struct adi_blkreq_s *blkreq)


Define Documentation

#define MOD_NAME   "BLKREQ: "
 

Definition at line 23 of file blkreq.c.


Function Documentation

int blkreq_build struct adi_blkreq_s *  blkreq,
u16  req_dev,
u32  req_block,
u32  req_len
 

Definition at line 25 of file blkreq.c.

References adi_get_blkdev(), MOD_NAME, and printk().

00026 {
00027     struct adi_blkdev_s *blkdev;
00028     
00029     if ((blkdev = adi_get_blkdev(req_dev)) == NULL) {
00030         printk(MOD_NAME "unknown device %x\n", req_dev);
00031         return -1;
00032     }
00033     
00034     /* TODO */
00035     
00036     return 0;
00037 }

Here is the call graph for this function:

int blkreq_queue struct adi_blkreq_s *  blkreq  ) 
 

Definition at line 39 of file blkreq.c.

00040 {
00041     /* TODO */
00042 
00043     return 0;
00044 }

Dokumentacje wygenerowano programem Doxygen 1.4.2 dla projektu Agnix