#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdarg.h>
#include <sys/mman.h>
#include <sys/fcntl.h>
#include <signal.h>
#include <memory.h>
#include <time.h>
#include "lib_malloc.h"
#include "lib_queue.h"
#include "usbchap9.h"
#include "usbd.h"
#include "ohci.h"
Go to the source code of this file.
◆ DEVICE_AREA_ADDR
#define DEVICE_AREA_ADDR 0xd9100000 /* EDIT ME */ |
◆ DEVICE_AREA_SIZE
#define DEVICE_AREA_SIZE 4096 |
◆ OHCI_READCSR
#define OHCI_READCSR |
( |
|
softc, |
|
|
|
x |
|
) |
| *((volatile uint32_t *) ((softc)->ohci_regs + ((x)/sizeof(uint32_t)))) |
◆ OHCI_WRITECSR
#define OHCI_WRITECSR |
( |
|
softc, |
|
|
|
x, |
|
|
|
y |
|
) |
| *((volatile uint32_t *) ((softc)->ohci_regs + ((x)/sizeof(uint32_t)))) = (y) |
◆ PLAY_AREA_ADDR
#define PLAY_AREA_ADDR (255*1024*1024) /* EDIT ME */ |
◆ PLAY_AREA_SIZE
#define PLAY_AREA_SIZE (1024*1024) |
◆ console_log()
void console_log |
( |
const char * |
tmplt, |
|
|
|
... |
|
) |
| |
◆ init_devaccess()
int init_devaccess |
( |
void |
| ) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ mydelay()
◆ ptov()
◆ sighandler()
void sighandler |
( |
int |
sig | ) |
|
◆ uninit_devaccess()
void uninit_devaccess |
( |
void |
| ) |
|
◆ usbmass_read_sector()
◆ vtop()
◆ xprintf()
int xprintf |
( |
char * |
str | ) |
|
◆ bus
◆ dev_fd
◆ device_area
◆ ohci
◆ ohci_driver
◆ ohcidebug
◆ play_area
◆ play_fd
◆ running
◆ usb_noisy
◆ usbmass_dev