ENUM CVMX_USB_INITIALIZE_FLAGS(9)
π¦ enum cvmx_usb_initialize_flags(9) π¦
okay so this is from the Kernel API Manual, bestie β it's the page about enum cvmx_usb_initialize_flags, which is literally just the flags you hand to the initialization function. no cap, that's the whole vibe. π
β¨ NAME β¨
enum cvmx_usb_initialize_flags β flags used by the initialization function π«Ά
πΈ SYNOPSIS πΈ
enum cvmx_usb_initialize_flags {
CVMX_USB_INITIALIZE_FLAGS_CLOCK_XO_XI ,
CVMX_USB_INITIALIZE_FLAGS_CLOCK_XO_GND ,
CVMX_USB_INITIALIZE_FLAGS_CLOCK_MHZ_MASK ,
CVMX_USB_INITIALIZE_FLAGS_CLOCK_12MHZ ,
CVMX_USB_INITIALIZE_FLAGS_CLOCK_24MHZ ,
CVMX_USB_INITIALIZE_FLAGS_CLOCK_48MHZ ,
CVMX_USB_INITIALIZE_FLAGS_NO_DMA
};
like, that's the whole enum. seven little constants. not me being obsessed with a clock config π
π Constants π
CVMX_USB_INITIALIZE_FLAGS_CLOCK_XO_XIβ the USB port uses a 12MHz crystal as clock source atUSB_XOandUSB_XI. π crystal girlie behavior, honestly.CVMX_USB_INITIALIZE_FLAGS_CLOCK_XO_GNDβ the USB port uses a 12/24/48MHz 2.5V board clock source atUSB_XO. andUSB_XIshould be tied to GND. β‘CVMX_USB_INITIALIZE_FLAGS_CLOCK_MHZ_MASKβ the mask for the clock speed field. it's giving "look, a mask" πCVMX_USB_INITIALIZE_FLAGS_CLOCK_12MHZβ speed of reference clock or crystal. πCVMX_USB_INITIALIZE_FLAGS_CLOCK_24MHZβ speed of reference clock. ππCVMX_USB_INITIALIZE_FLAGS_CLOCK_48MHZβ speed of reference clock. ππππCVMX_USB_INITIALIZE_FLAGS_NO_DMAβ disable DMA and used polled IO for data transfer use for the USB. π yes bestie, that's exactly how it's worded, and yes it's a whole mood β polled IO instead of DMA.
π₯ SEE ALSO π₯
main character energy from the kernel file ./drivers/usb/host/octeon-hcd.c β go read that one too, it's the source of all this:
enum cvmx_usb_speed(9)enum cvmx_usb_transfer(9)enum cvmx_usb_direction(9)enum cvmx_usb_status(9)struct cvmx_usb_port_status(9)struct cvmx_usb_iso_packet(9)enum cvmx_usb_pipe_flags(9)struct cvmx_usb_transaction(9)struct cvmx_usb_pipe(9)struct octeon_hcd(9)struct octeon_temp_buffer(9)octeon_alloc_temp_buffer(9)octeon_free_temp_buffer(9)octeon_map_urb_for_dma(9)octeon_unmap_urb_for_dma(9)
okay that's the whole page, you ate that π this one lives under ./drivers/usb/host, dated October 2026, and it's literally titled enum cvmx_us...ialize_flags(9) β slay, go configure ur clocks bestie π§π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms