Lines Matching +full:dma +full:- +full:queues

1 /* SPDX-License-Identifier: GPL-2.0 */
52 #define RSD_REQUIRED (((MAX_PDU_SIZE - SMALL_BUFFER_SIZE + LARGE_BUFFER_SIZE) / LARGE_BUFFER_SIZE)…
56 /* RSD_REQUIRED receive segment descriptors are enough to describe a max-sized PDU,
61 #define RSD_EXTENSION ((RSD_REQUIRED - RSD_FIXED) + 1)
65 #define FORE200E_DEV(d) ((struct fore200e*)((d)->dev_data))
66 #define FORE200E_VCC(d) ((struct fore200e_vcc*)((d)->dev_data))
135 u32 buffer; /* transmit buffer DMA address */
190 u32 buffer_haddr; /* host DMA address of host buffer */
201 /* tpd DMA address */
207 u32 haddr : 27 /* tpd DMA addr aligned on 32 byte boundary */
216 struct tpd_haddr tpd_haddr; /* host DMA address of tpd */
217 u32 status_haddr; /* host DMA address of completion status */
224 u32 rpd_haddr; /* host DMA address of rpd */
225 u32 status_haddr; /* host DMA address of completion status */
232 u32 rbd_block_haddr; /* host DMA address of rbd block */
233 u32 status_haddr; /* host DMA address of completion status */
256 OPCODE_SET_OC3, /* set OC-3 registers */
257 OPCODE_GET_OC3, /* get OC-3 registers */
318 /* OC-3 registers */
321 u32 reg[ 128 ]; /* see the PMC Sierra PC5346 S/UNI-155-Lite
323 for a description of the OC-3 chip registers */
327 /* set/get OC-3 regs command opcode */
341 /* set/get OC-3 regs command block */
344 struct oc3_opcode opcode; /* set/get OC-3 regs command opcode */
345 u32 regs_haddr; /* host DMA address of OC-3 regs buffer */
358 /* OC-3 statistics */
443 struct stats_oc3 oc3; /* OC-3 statistics */
466 u32 stats_haddr; /* host DMA address of stats buffer */
493 u32 prom_haddr; /* host DMA address of PROM buffer */
505 struct oc3_block oc3_block; /* get/set OC-3 registers */
514 u32 status_haddr; /* host DMA address of completion status */
525 u32 tpd_dma; /* DMA address of tpd */
540 u32 rpd_dma; /* DMA address of rpd */
550 u32 rbd_block_dma; /* DMA address od rdb */
567 dma_addr_t dma_addr; /* DMA address of aligned chunk */
568 int direction; /* direction of DMA mapping */
573 #define dma_size align_size /* DMA useable size */
630 /* host resident buffer supply queues */
655 /* receive buffer supply queues scheme specification */
666 /* initialization command block (one-time command, not in cmd queue) */
680 …struct bs_spec bs_spec[ BUFFER_SCHEME_NBR ][ BUFFER_MAGN_NBR ]; /* buffer supply queues spec …
688 MEDIA_TYPE_SM_OC3_ST = 0x36, /* single-mode fiber ST */
689 MEDIA_TYPE_SM_OC3_SC = 0x46 /* single-mode fiber SC */
695 /* cp resident queues */
701 …u32 cp_bsq[ BUFFER_SCHEME_NBR ][ BUFFER_MAGN_NBR ]; /* buffer supply queues */
705 u32 heap_size; /* space available for queues */
714 u32 oc3_revision; /* OC-3 revision number */
722 BSTAT_SELFTEST_OK = (u32) 0x02201958, /* self-test ok */
723 BSTAT_SELFTEST_FAIL = (u32) 0xadbadbad, /* self-test failed */
770 /* PCA-200E registers */
779 /* SBA-200E registers */
788 /* model-specific registers */
791 struct fore200e_pca_regs pca; /* PCA-200E registers */
792 struct fore200e_sba_regs sba; /* SBA-200E registers */
798 /* bus-dependent data */
803 int descr_alignment; /* tpd/rpd/rbd DMA alignment requirement */
804 int buffer_alignment; /* rx buffers DMA alignment requirement */
805 int status_alignment; /* status words DMA alignment requirement */
827 (& (fore200e)->vc_map[ ((vpi) << FORE200E_VCI_BITS) | (vci) ])
830 /* per-device data */
833 const struct fore200e_bus* bus; /* bus-dependent code and data */
834 union fore200e_regs regs; /* bus-dependent registers */
848 …struct cp_queues __iomem * cp_queues; /* cp resident queues
852 /* host resident buffer supply queues */
855 u32 available_cell_rate; /* remaining pseudo-CBR bw on link */
874 /* per-vcc data */
889 /* 200E-series common memory layout */
892 #define FORE200E_CP_QUEUES_OFFSET 0x00004d40 /* cp resident queues */
895 /* PCA-200E memory layout */
904 /* PCA-200E host control register */
919 /* PCA-200E PCI bus interface regs (offsets in PCI config space) */
927 #define PCA200E_CTRL_DIS_CACHE_RD (1<<0) /* disable cache-line reads …
929 #define PCA200E_CTRL_2_CACHE_WRT_INVAL (1<<2) /* require 2 cache-lines for writes and invalidate…
937 #define SBA200E_PROM_NAME "FORE,sba-200e" /* device name in openprom tree */
940 /* size of SBA-200E registers */
948 /* SBA-200E SBUS burst transfer size register */
955 /* SBA-200E host control register */