px.c revision c2cc6e0756df4cf338a68021e19d09219abba393
0N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A#include "px_tools_ext.h"
0N/Aextern int pcie_max_mps;
0N/Avoid *px_state_p;
0N/A if (e != DDI_SUCCESS)
0N/A if (e != DDI_SUCCESS)
0N/A if (e != DDI_SUCCESS)
0N/A case DDI_INFO_DEVT2INSTANCE:
0N/A return (DDI_SUCCESS);
0N/A case DDI_INFO_DEVT2DEVINFO:
0N/A return (DDI_FAILURE);
0N/A return (DDI_SUCCESS);
0N/A return (DDI_FAILURE);
0N/A case DDI_ATTACH:
0N/A != DDI_SUCCESS) {
0N/A goto err_bad_px_softstate;
0N/A goto err_bad_px_prop;
0N/A goto err_bad_dev_init;
350N/A goto err_bad_ib;
0N/A goto err_bad_cb;
0N/A goto err_bad_mmu;
0N/A goto err_bad_msiq;
0N/A goto err_bad_msi;
0N/A goto err_bad_pec;
0N/A goto err_bad_dma;
113N/A goto err_bad_intr;
0N/A goto err_bad_devctl_node;
0N/A goto err_bad_pcitool_node;
0N/A case DDI_RESUME:
0N/A return (DDI_FAILURE);
0N/A case DDI_DETACH:
0N/A return (DDI_FAILURE);
681N/A return (DDI_SUCCESS);
169N/A case DDI_SUSPEND:
681N/A return (DDI_FAILURE);
0N/A return (DDI_FAILURE);
0N/A return (DDI_FAILURE);
0N/A DDI_KERNEL_IOCTL)) {
0N/A return (DDI_FAILURE);
0N/A goto pwr_setup_err1;
0N/A goto px_pwrsetup_err_state;
0N/A return (DDI_SUCCESS);
0N/A return (DDI_FAILURE);
615N/A return (DDI_ME_UNIMPLEMENTED);
615N/A case DDI_MT_REGSPEC:
0N/A case DDI_MT_RNUMBER:
0N/A return (DDI_ME_RNUMBER_RANGE);
0N/A return (DDI_ME_RNUMBER_RANGE);
0N/A return (DDI_ME_INVAL);
0N/A return (DDI_ME_INVAL);
1064N/A return (DDI_DMA_NORESOURCES);
0N/A return (DDI_DMA_NOMAPPING);
0N/A goto freehandle;
0N/A goto freehandle;
0N/A goto freehandle;
0N/A goto freehandle;
0N/A goto freehandle;
0N/A case PX_DMAI_FLAGS_BYPASS:
0N/A return (DDI_DMA_BADATTR);
0N/A return (DDI_DMA_NORESOURCES);
514N/A return (DDI_SUCCESS);
0N/A if (px_kmem_clid) {
0N/A return (DDI_SUCCESS);
0N/A return (DDI_DMA_INUSE);
0N/A case PX_DMAI_FLAGS_DVMA:
0N/A case PX_DMAI_FLAGS_BYPASS:
0N/A case PX_DMAI_FLAGS_PTP:
0N/A return (DDI_FAILURE);
0N/A case PX_DMAI_FLAGS_DVMA:
0N/A case PX_DMAI_FLAGS_BYPASS:
0N/A case PX_DMAI_FLAGS_PTP:
219N/A if (px_kmem_clid) {
0N/A return (DDI_SUCCESS);
0N/A return (DDI_FAILURE);
0N/A case PX_DMAI_FLAGS_DVMA:
0N/A /* map_window sets dmai_mapping/size/offset */
0N/A case PX_DMAI_FLAGS_PTP:
0N/A case PX_DMAI_FLAGS_BYPASS: {
880N/A return (DDI_FAILURE);
0N/A return (DDI_SUCCESS);
0N/Astatic char *px_dmactl_str[] = {
0N/A case DDI_DMA_FREE:
0N/A return (DDI_SUCCESS);
0N/A case DDI_DMA_RESERVE: {
0N/A case DDI_DMA_RELEASE: {
0N/A case PX_DMAI_FLAGS_DVMA:
0N/A cache_flags));
0N/A case PX_DMAI_FLAGS_PTP:
0N/A case PX_DMAI_FLAGS_BYPASS:
0N/A cache_flags));
0N/A case DDI_CTLOPS_INITCHILD:
0N/A case DDI_CTLOPS_UNINITCHILD:
0N/A case DDI_CTLOPS_ATTACH:
0N/A return (DDI_SUCCESS);
0N/A return (DDI_SUCCESS);
342N/A return (DDI_SUCCESS);
0N/A case DDI_CTLOPS_DETACH:
0N/A return (DDI_SUCCESS);
1064N/A return (DDI_SUCCESS);
0N/A return (DDI_SUCCESS);
0N/A case DDI_CTLOPS_REPORTDEV:
0N/A case DDI_CTLOPS_IOMIN:
0N/A return (DDI_SUCCESS);
1064N/A case DDI_CTLOPS_REGSIZE:
0N/A case DDI_CTLOPS_NREGS:
0N/A return (DDI_SUCCESS);
0N/A case DDI_CTLOPS_DVMAPAGESIZE:
0N/A return (DDI_SUCCESS);
0N/A case DDI_CTLOPS_POWER:
0N/A case DDI_INTR_TYPE_FIXED:
1145N/A case DDI_INTR_TYPE_MSI:
1145N/A case DDI_INTR_TYPE_MSIX:
1145N/A return (DDI_FAILURE);
0N/A != DDI_PROP_SUCCESS) {
1064N/A return (DDI_FAILURE);
342N/A return (DDI_FAILURE);
0N/A return (DDI_FAILURE);
0N/A return (DDI_FAILURE);
0N/A return (DDI_FAILURE);
0N/A return (DDI_SUCCESS);
1145N/A return (DDI_FAILURE);
1145N/A return (DDI_FAILURE);
1145N/A return (DDI_SUCCESS);
1145N/A int max_supported;
1145N/A &max_supported) < 0) {