int open(ThreadContext *tc, int mode, int flags) override
Abstract method, invoked when the user program calls open() on the device driver.
Addr mmap(ThreadContext *tc, Addr start, uint64_t length, int prot, int tgt_flags, int tgt_fd, off_t offset) override
Virtual method, invoked when the user program calls mmap() on the file descriptor returned by a previ...
ThreadContext is the external interface to all thread state for anything outside of the CPU.
virtual Process * getProcessPtr()=0