Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
__attribute__ Struct Reference

#include <block.h>

Public Member Functions

uint8_t fpu_state[512] __attribute__ ((aligned(16)))
 
uint8_t fpu_state[512] __attribute__ ((aligned(16)))
 

Data Fields

open_response_code(* open )(fmode_t mode)
 
int(* close )(void)
 
uint8_t *(* read )(uint64_t offset, size_t count)
 
int(* write )(void *block, uint64_t offset, size_t count, uint8_t *data)
 
uint64_t rax
 
uint64_t rbx
 
uint64_t rcx
 
uint64_t rdx
 
uint64_t rbp
 
uint64_t rsi
 
uint64_t rdi
 
uint64_t r8
 
uint64_t r9
 
uint64_t r10
 
uint64_t r11
 
uint64_t r12
 
uint64_t r13
 
uint64_t r14
 
uint64_t r15
 
uint64_t int_no
 
uint64_t err_code
 
uint64_t rip
 
uint64_t cs
 
uint64_t rflags
 
uint64_t rsp
 
uint64_t ss
 
uint32_t device_feature_select
 
uint32_t device_feature
 
uint32_t driver_feature_select
 
uint32_t driver_feature
 
uint16_t msix_config
 
uint16_t num_queues
 
uint8_t device_status
 
uint8_t config_generation
 
uint16_t queue_select
 
uint16_t queue_size
 
uint16_t queue_msix_vector
 
uint16_t queue_enable
 
uint16_t queue_notify_off
 
uint64_t queue_desc
 
uint64_t queue_avail
 
uint64_t queue_used
 
uint16_t limit_low
 
uint16_t base_low
 
uint8_t base_middle
 
uint8_t access
 
uint8_t flags
 
uint8_t base_high
 
uint16_t limit
 
uint64_t base
 
uint16_t offset_low
 
uint16_t selector
 
uint8_t ist
 
uint8_t type_attr
 
uint16_t offset_mid
 
uint32_t offset_high
 
uint32_t zero
 
uint8_t data [512]
 
struct SDT sdt
 
uint64_t reserved
 
MCFG_configuration_space_t conf []
 
uint16_t signature
 
uint32_t file_size
 
uint16_t reserved1
 
uint16_t reserved2
 
uint32_t pixel_offset
 
uint32_t dib_header_size
 
int32_t width
 
int32_t height
 
uint16_t planes
 
uint16_t bpp
 
uint32_t compression
 
uint32_t image_size
 
uint32_t xppm
 
uint32_t yppm
 
uint32_t colors_used
 
uint32_t colors_important
 
char filename [100]
 
char mode [8]
 
char uid [8]
 
char gid [8]
 
char size [12]
 
char mtime [12]
 
char checksum [8]
 
char typeflag
 
char linkname [100]
 
char ustar [6]
 
char ustar_version [2]
 
char owner_user [32]
 
char owner_group [32]
 
char dev_major [8]
 
char dev_minor [8]
 
char filename_prefix [155]
 
char _padding [12]
 
uint16_t htype
 
uint16_t ptype
 
uint8_t hlen
 
uint8_t plen
 
uint16_t op
 
uint8_t dest [6]
 
uint8_t src [6]
 
uint16_t type
 
uint8_t type
 
uint8_t code
 
uint16_t checksum
 
uint32_t rest
 
uint8_t version_ihl
 
uint8_t dscp_ecn
 
uint16_t total_length
 
uint16_t identification
 
uint16_t flags_fragment_offset
 
uint8_t ttl
 
uint8_t protocol
 
uint32_t source_ip
 
uint32_t dest_ip
 
uint16_t source_port
 
uint16_t dest_port
 
uint16_t length
 
uint8_t magic [4]
 
uint32_t size
 
uint8_t features
 
uint8_t width
 
uint8_t height
 
uint8_t baseline
 
uint8_t underline
 
uint16_t fragments_offs
 
uint32_t characters_offs
 
uint32_t ligature_offs
 
uint32_t kerning_offs
 
uint32_t cmap_offs
 
uint64_t length
 
uint32_t type
 
uintptr_t virt_addr
 
uintptr_t phys_addr
 
_Atomic int lock
 
mem_physwindow_flag_t flag
 
uint32_t cap
 
uint32_t ghc
 
uint32_t is
 
uint32_t pi
 
uint32_t vs
 
uint32_t ccc_ctl
 
uint32_t ccc_pts
 
uint32_t em_loc
 
uint32_t em_ctl
 
uint32_t cap2
 
uint32_t bohc
 
uint8_t rsv [0xA0 - 0x2C]
 
uint8_t vendor [0x100 - 0xA0]
 
ahci_port_t ports [1]
 
uint32_t dba
 
uint32_t dbau
 
uint32_t rsv0
 
uint32_t dbc: 22
 
uint32_t rsv1: 9
 
uint32_t i: 1
 
uint8_t cfis [64]
 
uint8_t acmd [16]
 
ahci_prdt_t prdt []
 
uint32_t last_lba
 
uint32_t block_size
 

Detailed Description

Definition at line 36 of file block.h.

Constructor & Destructor Documentation

◆ __attribute__() [1/2]

uint8_t fpu_state[512] __attribute__::__attribute__ ( (aligned(16)) )

◆ __attribute__() [2/2]

uint8_t fpu_state[512] __attribute__::__attribute__ ( (aligned(16)) )

References cs, err_code, int_no, r10, r11, r12, r13, r14, r15, r8, r9, rax, rbp, rbx, rcx, rdi, rdx, rflags, rip, rsi, rsp, and ss.

Field Documentation

◆ _padding

char __attribute__::_padding[12]

Definition at line 55 of file tar.h.

◆ access

uint8_t __attribute__::access

Definition at line 10 of file gdt.h.

◆ acmd

uint8_t __attribute__::acmd[16]

Definition at line 146 of file ahci_reg.hpp.

◆ base

uint64_t __attribute__::base

Definition at line 19 of file gdt.h.

◆ base_high

uint8_t __attribute__::base_high

Definition at line 12 of file gdt.h.

◆ base_low

uint16_t __attribute__::base_low

Definition at line 8 of file gdt.h.

◆ base_middle

uint8_t __attribute__::base_middle

Definition at line 9 of file gdt.h.

◆ baseline

uint8_t __attribute__::baseline

Definition at line 112 of file ssfn.h.

◆ block_size

uint32_t __attribute__::block_size

Definition at line 14 of file atapi.cpp.

◆ bohc

uint32_t __attribute__::bohc

Definition at line 47 of file ahci_reg.hpp.

◆ bpp

uint16_t __attribute__::bpp

Definition at line 17 of file bmp.h.

◆ cap

uint32_t __attribute__::cap

Definition at line 37 of file ahci_reg.hpp.

◆ cap2

uint32_t __attribute__::cap2

Definition at line 46 of file ahci_reg.hpp.

◆ ccc_ctl

uint32_t __attribute__::ccc_ctl

Definition at line 42 of file ahci_reg.hpp.

◆ ccc_pts

uint32_t __attribute__::ccc_pts

Definition at line 43 of file ahci_reg.hpp.

◆ cfis

uint8_t __attribute__::cfis[64]

Definition at line 145 of file ahci_reg.hpp.

◆ characters_offs

uint32_t __attribute__::characters_offs

Definition at line 115 of file ssfn.h.

◆ checksum [1/2]

uint16_t __attribute__::checksum

Definition at line 45 of file tar.h.

◆ checksum [2/2]

uint16_t __attribute__::checksum

Definition at line 7 of file icmp.h.

◆ close

int(* __attribute__::close) (void)

Definition at line 38 of file block.h.

◆ cmap_offs

uint32_t __attribute__::cmap_offs

Definition at line 118 of file ssfn.h.

◆ code

uint8_t __attribute__::code

Definition at line 6 of file icmp.h.

◆ colors_important

uint32_t __attribute__::colors_important

Definition at line 23 of file bmp.h.

◆ colors_used

uint32_t __attribute__::colors_used

Definition at line 22 of file bmp.h.

◆ compression

uint32_t __attribute__::compression

Definition at line 18 of file bmp.h.

◆ conf

MCFG_configuration_space_t __attribute__::conf[]

Definition at line 18 of file pcie.h.

◆ config_generation

uint8_t __attribute__::config_generation

Definition at line 34 of file virtio.h.

◆ cs

uint64_t __attribute__::cs

Definition at line 13 of file register.h.

Referenced by __attribute__().

◆ data

uint8_t __attribute__::data[512]

Definition at line 60 of file interrupt.h.

◆ dba

uint32_t __attribute__::dba

Definition at line 107 of file ahci_reg.hpp.

◆ dbau

uint32_t __attribute__::dbau

Definition at line 108 of file ahci_reg.hpp.

◆ dbc

uint32_t __attribute__::dbc

Definition at line 112 of file ahci_reg.hpp.

◆ dest

uint8_t __attribute__::dest[6]

Definition at line 10 of file ethernet.h.

◆ dest_ip

uint32_t __attribute__::dest_ip

Definition at line 14 of file ip.h.

◆ dest_port

uint16_t __attribute__::dest_port

Definition at line 8 of file udp.h.

◆ dev_major

char __attribute__::dev_major[8]

Definition at line 52 of file tar.h.

◆ dev_minor

char __attribute__::dev_minor[8]

Definition at line 53 of file tar.h.

◆ device_feature

uint32_t __attribute__::device_feature

Definition at line 28 of file virtio.h.

◆ device_feature_select

uint32_t __attribute__::device_feature_select

Definition at line 27 of file virtio.h.

◆ device_status

uint8_t __attribute__::device_status

Definition at line 33 of file virtio.h.

◆ dib_header_size

uint32_t __attribute__::dib_header_size

Definition at line 13 of file bmp.h.

◆ driver_feature

uint32_t __attribute__::driver_feature

Definition at line 30 of file virtio.h.

◆ driver_feature_select

uint32_t __attribute__::driver_feature_select

Definition at line 29 of file virtio.h.

◆ dscp_ecn

uint8_t __attribute__::dscp_ecn

Definition at line 6 of file ip.h.

◆ em_ctl

uint32_t __attribute__::em_ctl

Definition at line 45 of file ahci_reg.hpp.

◆ em_loc

uint32_t __attribute__::em_loc

Definition at line 44 of file ahci_reg.hpp.

◆ err_code

uint64_t __attribute__::err_code

Definition at line 13 of file register.h.

Referenced by __attribute__().

◆ features

uint8_t __attribute__::features

Definition at line 109 of file ssfn.h.

◆ file_size

uint32_t __attribute__::file_size

Definition at line 9 of file bmp.h.

◆ filename

char __attribute__::filename[100]

Definition at line 39 of file tar.h.

◆ filename_prefix

char __attribute__::filename_prefix[155]

Definition at line 54 of file tar.h.

◆ flag

mem_physwindow_flag_t __attribute__::flag

Definition at line 25 of file phys_window.h.

◆ flags

uint8_t __attribute__::flags

Definition at line 11 of file gdt.h.

◆ flags_fragment_offset

uint16_t __attribute__::flags_fragment_offset

Definition at line 9 of file ip.h.

◆ fragments_offs

uint16_t __attribute__::fragments_offs

Definition at line 114 of file ssfn.h.

◆ ghc

uint32_t __attribute__::ghc

Definition at line 38 of file ahci_reg.hpp.

◆ gid

char __attribute__::gid[8]

Definition at line 42 of file tar.h.

◆ height [1/2]

int32_t __attribute__::height

Definition at line 15 of file bmp.h.

◆ height [2/2]

uint8_t __attribute__::height

Definition at line 111 of file ssfn.h.

◆ hlen

uint8_t __attribute__::hlen

Definition at line 16 of file arp.h.

◆ htype

uint16_t __attribute__::htype

Definition at line 14 of file arp.h.

◆ i

uint32_t __attribute__::i

Definition at line 114 of file ahci_reg.hpp.

◆ identification

uint16_t __attribute__::identification

Definition at line 8 of file ip.h.

◆ image_size

uint32_t __attribute__::image_size

Definition at line 19 of file bmp.h.

◆ int_no

uint64_t __attribute__::int_no

Definition at line 13 of file register.h.

Referenced by __attribute__().

◆ is

uint32_t __attribute__::is

Definition at line 39 of file ahci_reg.hpp.

◆ ist

uint8_t __attribute__::ist

Definition at line 33 of file interrupt.h.

◆ kerning_offs

uint32_t __attribute__::kerning_offs

Definition at line 117 of file ssfn.h.

◆ last_lba

uint32_t __attribute__::last_lba

Definition at line 13 of file atapi.cpp.

◆ length [1/2]

uint16_t __attribute__::length

Definition at line 9 of file udp.h.

◆ length [2/2]

uint64_t __attribute__::length

Definition at line 19 of file entry.h.

◆ ligature_offs

uint32_t __attribute__::ligature_offs

Definition at line 116 of file ssfn.h.

◆ limit

uint16_t __attribute__::limit

Definition at line 18 of file gdt.h.

◆ limit_low

uint16_t __attribute__::limit_low

Definition at line 7 of file gdt.h.

◆ linkname

char __attribute__::linkname[100]

Definition at line 47 of file tar.h.

◆ lock

_Atomic int __attribute__::lock

Definition at line 24 of file phys_window.h.

◆ magic

uint8_t __attribute__::magic[4]

Definition at line 106 of file ssfn.h.

◆ mode

char __attribute__::mode[8]

Definition at line 40 of file tar.h.

◆ msix_config

uint16_t __attribute__::msix_config

Definition at line 31 of file virtio.h.

◆ mtime

char __attribute__::mtime[12]

Definition at line 44 of file tar.h.

◆ num_queues

uint16_t __attribute__::num_queues

Definition at line 32 of file virtio.h.

◆ offset_high

uint32_t __attribute__::offset_high

Definition at line 36 of file interrupt.h.

◆ offset_low

uint16_t __attribute__::offset_low

Definition at line 31 of file interrupt.h.

◆ offset_mid

uint16_t __attribute__::offset_mid

Definition at line 35 of file interrupt.h.

◆ op

uint16_t __attribute__::op

Definition at line 18 of file arp.h.

◆ open

open_response_code(* __attribute__::open) (fmode_t mode)

Definition at line 37 of file block.h.

◆ owner_group

char __attribute__::owner_group[32]

Definition at line 51 of file tar.h.

◆ owner_user

char __attribute__::owner_user[32]

Definition at line 50 of file tar.h.

◆ phys_addr

uintptr_t __attribute__::phys_addr

Definition at line 23 of file phys_window.h.

◆ pi

uint32_t __attribute__::pi

Definition at line 40 of file ahci_reg.hpp.

◆ pixel_offset

uint32_t __attribute__::pixel_offset

Definition at line 12 of file bmp.h.

◆ planes

uint16_t __attribute__::planes

Definition at line 16 of file bmp.h.

◆ plen

uint8_t __attribute__::plen

Definition at line 17 of file arp.h.

◆ ports

ahci_port_t __attribute__::ports[1]

Definition at line 56 of file ahci_reg.hpp.

◆ prdt

ahci_prdt_t __attribute__::prdt[]

Definition at line 148 of file ahci_reg.hpp.

◆ protocol

uint8_t __attribute__::protocol

Definition at line 11 of file ip.h.

◆ ptype

uint16_t __attribute__::ptype

Definition at line 15 of file arp.h.

◆ queue_avail

uint64_t __attribute__::queue_avail

Definition at line 42 of file virtio.h.

◆ queue_desc

uint64_t __attribute__::queue_desc

Definition at line 41 of file virtio.h.

◆ queue_enable

uint16_t __attribute__::queue_enable

Definition at line 39 of file virtio.h.

◆ queue_msix_vector

uint16_t __attribute__::queue_msix_vector

Definition at line 38 of file virtio.h.

◆ queue_notify_off

uint16_t __attribute__::queue_notify_off

Definition at line 40 of file virtio.h.

◆ queue_select

uint16_t __attribute__::queue_select

Definition at line 36 of file virtio.h.

◆ queue_size

uint16_t __attribute__::queue_size

Definition at line 37 of file virtio.h.

◆ queue_used

uint64_t __attribute__::queue_used

Definition at line 43 of file virtio.h.

◆ r10

uint64_t __attribute__::r10

Definition at line 12 of file register.h.

Referenced by __attribute__().

◆ r11

uint64_t __attribute__::r11

Definition at line 12 of file register.h.

Referenced by __attribute__().

◆ r12

uint64_t __attribute__::r12

Definition at line 12 of file register.h.

Referenced by __attribute__().

◆ r13

uint64_t __attribute__::r13

Definition at line 12 of file register.h.

Referenced by __attribute__().

◆ r14

uint64_t __attribute__::r14

Definition at line 13 of file register.h.

Referenced by __attribute__().

◆ r15

uint64_t __attribute__::r15

Definition at line 13 of file register.h.

Referenced by __attribute__().

◆ r8

uint64_t __attribute__::r8

Definition at line 12 of file register.h.

Referenced by __attribute__().

◆ r9

uint64_t __attribute__::r9

Definition at line 12 of file register.h.

Referenced by __attribute__().

◆ rax

uint64_t __attribute__::rax

Definition at line 12 of file register.h.

Referenced by __attribute__().

◆ rbp

uint64_t __attribute__::rbp

Definition at line 12 of file register.h.

Referenced by __attribute__().

◆ rbx

uint64_t __attribute__::rbx

Definition at line 12 of file register.h.

Referenced by __attribute__().

◆ rcx

uint64_t __attribute__::rcx

Definition at line 12 of file register.h.

Referenced by __attribute__().

◆ rdi

uint64_t __attribute__::rdi

Definition at line 12 of file register.h.

Referenced by __attribute__().

◆ rdx

uint64_t __attribute__::rdx

Definition at line 12 of file register.h.

Referenced by __attribute__().

◆ read

uint8_t *(* __attribute__::read) (uint64_t offset, size_t count)

Definition at line 39 of file block.h.

◆ reserved

uint64_t __attribute__::reserved

Definition at line 17 of file pcie.h.

◆ reserved1

uint16_t __attribute__::reserved1

Definition at line 10 of file bmp.h.

◆ reserved2

uint16_t __attribute__::reserved2

Definition at line 11 of file bmp.h.

◆ rest

uint32_t __attribute__::rest

Definition at line 8 of file icmp.h.

◆ rflags

uint64_t __attribute__::rflags

Definition at line 13 of file register.h.

Referenced by __attribute__().

◆ rip

uint64_t __attribute__::rip

Definition at line 13 of file register.h.

Referenced by __attribute__().

◆ rsi

uint64_t __attribute__::rsi

Definition at line 12 of file register.h.

Referenced by __attribute__().

◆ rsp

uint64_t __attribute__::rsp

Definition at line 13 of file register.h.

Referenced by __attribute__().

◆ rsv

uint8_t __attribute__::rsv

Definition at line 50 of file ahci_reg.hpp.

◆ rsv0

uint32_t __attribute__::rsv0

Definition at line 109 of file ahci_reg.hpp.

◆ rsv1

uint32_t __attribute__::rsv1

Definition at line 113 of file ahci_reg.hpp.

◆ sdt

struct SDT __attribute__::sdt

Definition at line 16 of file pcie.h.

◆ selector

uint16_t __attribute__::selector

Definition at line 32 of file interrupt.h.

◆ signature

uint16_t __attribute__::signature

Definition at line 8 of file bmp.h.

◆ size [1/2]

char __attribute__::size[12]

Definition at line 43 of file tar.h.

◆ size [2/2]

uint32_t __attribute__::size

Definition at line 107 of file ssfn.h.

◆ source_ip

uint32_t __attribute__::source_ip

Definition at line 13 of file ip.h.

◆ source_port

uint16_t __attribute__::source_port

Definition at line 7 of file udp.h.

Referenced by __attribute__().

◆ src

uint8_t __attribute__::src[6]

Definition at line 11 of file ethernet.h.

◆ ss

uint64_t __attribute__::ss

Definition at line 13 of file register.h.

Referenced by __attribute__().

◆ total_length

uint16_t __attribute__::total_length

Definition at line 7 of file ip.h.

◆ ttl

uint8_t __attribute__::ttl

Definition at line 10 of file ip.h.

◆ type [1/3]

uint8_t __attribute__::type

Definition at line 12 of file ethernet.h.

◆ type [2/3]

uint8_t __attribute__::type

Definition at line 5 of file icmp.h.

◆ type [3/3]

uint32_t __attribute__::type

Definition at line 20 of file entry.h.

◆ type_attr

uint8_t __attribute__::type_attr

Definition at line 34 of file interrupt.h.

◆ typeflag

char __attribute__::typeflag

Definition at line 46 of file tar.h.

◆ uid

char __attribute__::uid[8]

Definition at line 41 of file tar.h.

◆ underline

uint8_t __attribute__::underline

Definition at line 113 of file ssfn.h.

◆ ustar

char __attribute__::ustar[6]

Definition at line 48 of file tar.h.

◆ ustar_version

char __attribute__::ustar_version[2]

Definition at line 49 of file tar.h.

◆ vendor

uint8_t __attribute__::vendor[0x100 - 0xA0]

Definition at line 53 of file ahci_reg.hpp.

◆ version_ihl

uint8_t __attribute__::version_ihl

Definition at line 5 of file ip.h.

◆ virt_addr

uintptr_t __attribute__::virt_addr

Definition at line 22 of file phys_window.h.

◆ vs

uint32_t __attribute__::vs

Definition at line 41 of file ahci_reg.hpp.

◆ width [1/2]

int32_t __attribute__::width

Definition at line 14 of file bmp.h.

◆ width [2/2]

uint8_t __attribute__::width

Definition at line 110 of file ssfn.h.

◆ write

int(* __attribute__::write) (void *block, uint64_t offset, size_t count, uint8_t *data)

Definition at line 40 of file block.h.

◆ xppm

uint32_t __attribute__::xppm

Definition at line 20 of file bmp.h.

◆ yppm

uint32_t __attribute__::yppm

Definition at line 21 of file bmp.h.

◆ zero

uint32_t __attribute__::zero

Definition at line 37 of file interrupt.h.

Referenced by send_command(), and send_tcp_data().


The documentation for this struct was generated from the following files: