• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/liquidio/base/

Lines Matching refs:oct

202 typedef int (*octeon_console_print_fn)(struct octeon_device *oct,
543 #define LIO_CN23XX_PF(oct) ((oct)->chip_id == LIO_CN23XX_PF_VID)
544 #define LIO_CHIP_CONF(oct, TYPE) \
545 (((struct lio_ ## TYPE *)((oct)->chip))->conf)
554 void lio_free_device_mem(struct octeon_device *oct);
565 * @param oct - pointer to the octeon device structure.
572 int lio_register_device(struct octeon_device *oct, int bus, int dev,
577 * @param oct - pointer to the octeon device structure.
580 int lio_deregister_device(struct octeon_device *oct);
639 OCTEON_MAJOR_REV(struct octeon_device *oct)
642 uint16_t rev = (oct->rev_id & 0xC) >> 2;
648 OCTEON_MINOR_REV(struct octeon_device *oct)
651 return (oct->rev_id & 0x3);
656 * @param oct - pointer to the Octeon device.
665 uint64_t lio_pci_readq(struct octeon_device *oct, uint64_t addr);
669 * @param oct - pointer to the Octeon device.
678 void lio_pci_writeq(struct octeon_device *oct, uint64_t val, uint64_t addr);
683 * @param oct which octeon to send to
686 int lio_mem_access_ok(struct octeon_device *oct);
691 * @param oct which octeon to send to
698 int lio_wait_for_ddr_init(struct octeon_device *oct,
709 int lio_wait_for_bootloader(struct octeon_device *oct,
715 * @param oct which octeon initialize
718 int lio_init_consoles(struct octeon_device *oct);
723 * @param oct: which octeon to add to
732 int lio_add_console(struct octeon_device *oct, uint32_t console_num,
736 int lio_console_write(struct octeon_device *oct, uint32_t console_num,
741 void lio_remove_consoles(struct octeon_device *oct);
746 * @param oct which octeon to send to
752 int lio_console_send_cmd(struct octeon_device *oct, char *cmd_str,
757 * @param oct which octeon to download firmware to
766 int lio_download_firmware(struct octeon_device *oct, const uint8_t *data,
773 * @param oct which octeon to setup
777 int lio_setup_instr_queue0(struct octeon_device *oct);
781 * @param oct which octeon to setup
785 int lio_setup_output_queue0(struct octeon_device *oct);
787 int lio_get_tx_qsize(struct octeon_device *oct, uint32_t q_no);
789 int lio_get_rx_qsize(struct octeon_device *oct, uint32_t q_no);
793 * @param oct which octeon
798 void *lio_get_config_info(struct octeon_device *oct, uint16_t card_type);
804 struct lio_config *lio_get_conf(struct octeon_device *oct);
806 void lio_free_ioq_vector(struct octeon_device *oct);
807 int lio_allocate_ioq_vector(struct octeon_device *oct);
811 lio_read_pci_cfg(struct octeon_device *oct, uint32_t reg)
814 return (pci_read_config(oct->device, reg, 4));
818 lio_write_pci_cfg(struct octeon_device *oct, uint32_t reg, uint32_t value)
821 pci_write_config(oct->device, reg, value, 4);
825 lio_read_csr8(struct octeon_device *oct, uint32_t reg)
828 return (bus_space_read_1(oct->mem_bus_space[0].tag,
829 oct->mem_bus_space[0].handle, reg));
833 lio_write_csr8(struct octeon_device *oct, uint32_t reg, uint8_t val)
836 bus_space_write_1(oct->mem_bus_space[0].tag,
837 oct->mem_bus_space[0].handle, reg, val);
841 lio_read_csr16(struct octeon_device *oct, uint32_t reg)
844 return (bus_space_read_2(oct->mem_bus_space[0].tag,
845 oct->mem_bus_space[0].handle, reg));
849 lio_write_csr16(struct octeon_device *oct, uint32_t reg, uint16_t val)
852 bus_space_write_2(oct->mem_bus_space[0].tag,
853 oct->mem_bus_space[0].handle, reg, val);
857 lio_read_csr32(struct octeon_device *oct, uint32_t reg)
860 return (bus_space_read_4(oct->mem_bus_space[0].tag,
861 oct->mem_bus_space[0].handle, reg));
865 lio_write_csr32(struct octeon_device *oct, uint32_t reg, uint32_t val)
868 bus_space_write_4(oct->mem_bus_space[0].tag,
869 oct->mem_bus_space[0].handle, reg, val);
873 lio_read_csr64(struct octeon_device *oct, uint32_t reg)
877 return (lio_read_csr32(oct, reg) |
878 ((uint64_t)lio_read_csr32(oct, reg + 4) << 32));
880 return (bus_space_read_8(oct->mem_bus_space[0].tag,
881 oct->mem_bus_space[0].handle, reg));
886 lio_write_csr64(struct octeon_device *oct, uint32_t reg, uint64_t val)
890 lio_write_csr32(oct, reg, (uint32_t)val);
891 lio_write_csr32(oct, reg + 4, val >> 32);
893 bus_space_write_8(oct->mem_bus_space[0].tag,
894 oct->mem_bus_space[0].handle, reg, val);