Print this page
7127  remove -Wno-missing-braces from Makefile.uts


2812          */
2813         dmfe_unattach(dmfep);
2814         return (DDI_SUCCESS);
2815 }
2816 
2817 
2818 /*
2819  * ========== Module Loading Data & Entry Points ==========
2820  */
2821 
2822 DDI_DEFINE_STREAM_OPS(dmfe_dev_ops, nulldev, nulldev, dmfe_attach, dmfe_detach,
2823         nodev, NULL, D_MP, NULL, ddi_quiesce_not_supported);
2824 
2825 static struct modldrv dmfe_modldrv = {
2826         &mod_driverops,             /* Type of module.  This one is a driver */
2827         dmfe_ident,             /* short description */
2828         &dmfe_dev_ops               /* driver specific ops */
2829 };
2830 
2831 static struct modlinkage modlinkage = {
2832         MODREV_1, (void *)&dmfe_modldrv, NULL
2833 };
2834 
2835 int
2836 _info(struct modinfo *modinfop)
2837 {
2838         return (mod_info(&modlinkage, modinfop));
2839 }
2840 
2841 int
2842 _init(void)
2843 {
2844         uint32_t tmp100;
2845         uint32_t tmp10;
2846         int i;
2847         int status;
2848 
2849         /* Calculate global timing parameters */
2850         tmp100 = (dmfe_tx100_stall_us+dmfe_tick_us-1)/dmfe_tick_us;
2851         tmp10 = (dmfe_tx10_stall_us+dmfe_tick_us-1)/dmfe_tick_us;
2852 




2812          */
2813         dmfe_unattach(dmfep);
2814         return (DDI_SUCCESS);
2815 }
2816 
2817 
2818 /*
2819  * ========== Module Loading Data & Entry Points ==========
2820  */
2821 
2822 DDI_DEFINE_STREAM_OPS(dmfe_dev_ops, nulldev, nulldev, dmfe_attach, dmfe_detach,
2823         nodev, NULL, D_MP, NULL, ddi_quiesce_not_supported);
2824 
2825 static struct modldrv dmfe_modldrv = {
2826         &mod_driverops,             /* Type of module.  This one is a driver */
2827         dmfe_ident,             /* short description */
2828         &dmfe_dev_ops               /* driver specific ops */
2829 };
2830 
2831 static struct modlinkage modlinkage = {
2832         MODREV_1, { (void *)&dmfe_modldrv, NULL }
2833 };
2834 
2835 int
2836 _info(struct modinfo *modinfop)
2837 {
2838         return (mod_info(&modlinkage, modinfop));
2839 }
2840 
2841 int
2842 _init(void)
2843 {
2844         uint32_t tmp100;
2845         uint32_t tmp10;
2846         int i;
2847         int status;
2848 
2849         /* Calculate global timing parameters */
2850         tmp100 = (dmfe_tx100_stall_us+dmfe_tick_us-1)/dmfe_tick_us;
2851         tmp10 = (dmfe_tx10_stall_us+dmfe_tick_us-1)/dmfe_tick_us;
2852