File tree Expand file tree Collapse file tree 1 file changed +5
-33
lines changed Expand file tree Collapse file tree 1 file changed +5
-33
lines changed Original file line number Diff line number Diff line change 2929#ifndef  _MACHINE_INTR_H_ 
3030#define  _MACHINE_INTR_H_ 
3131
32+ #define  __USE_MI_SOFTINTR 
33+ 
34+ #include  <sys/softintr.h> 
35+ 
3236/* 
3337 * The interrupt level ipl is a logical level; per-platform interrupt 
3438 * code will turn it into the appropriate hardware interrupt masks 
7478#define 	IST_EDGE 	2	/* edge-triggered */ 
7579#define 	IST_LEVEL 	3	/* level-triggered */ 
7680
77- #define 	SINTBIT (q )	(q)
78- #define 	SINTMASK (q )	(1 << SINTBIT(q))
79- 
80- /* Soft interrupt masks. */ 
81- 
82- #define 	SI_SOFTCLOCK 	0	/* for IPL_SOFTCLOCK */ 
83- #define 	SI_SOFTNET 	1	/* for IPL_SOFTNET */ 
84- #define 	SI_SOFTTTY 	2	/* for IPL_SOFTTTY */ 
85- 
86- #define 	SI_NQUEUES 	3
87- 
8881#ifndef  _LOCORE 
8982
90- #include  <sys/mutex.h> 
91- #include  <sys/queue.h> 
92- 
93- struct  soft_intrhand  {
94- 	TAILQ_ENTRY (soft_intrhand ) sih_list ;
95- 	void 	(* sih_func )(void  * );
96- 	void 	* sih_arg ;
97- 	struct  soft_intrq  * sih_siq ;
98- 	int 	sih_pending ;
99- };
100- 
101- struct  soft_intrq  {
102- 	TAILQ_HEAD (, soft_intrhand ) siq_list ;
103- 	int  siq_si ;
104- 	struct  mutex  siq_mtx ;
105- };
106- 
107- void 	 softintr_disestablish (void  * );
108- void 	 softintr_dispatch (int );
109- void 	* softintr_establish (int , void  (* )(void  * ), void  * );
110- void 	 softintr_init (void );
111- void 	 softintr_schedule (void  * );
83+ void 	 softintr (int );
11284
11385#define  splbio ()	splraise(IPL_BIO)
11486#define  splnet ()	splraise(IPL_NET)
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments