00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #include <agnix/agnix.h>
00015 #include <agnix/irq.h>
00016 #include <agnix/adi/adi.h>
00017 #include <agnix/memory.h>
00018 #include <agnix/ioport.h>
00019 #include <agnix/list.h>
00020 #include <agnix/spinlock.h>
00021 #include <agnix/console.h>
00022
00023 #define MOD_NAME "BLKREQ: "
00024
00025 int blkreq_build(struct adi_blkreq_s *blkreq, u16 req_dev, u32 req_block, u32 req_len)
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
00035
00036 return 0;
00037 }
00038
00039 int blkreq_queue(struct adi_blkreq_s *blkreq)
00040 {
00041
00042
00043 return 0;
00044 }