brcmfmac: abstract tx packet processing functions
Abstract brcmf_sdio_txpkt_prep and brcmf_sdio_txpkt_postp as a preparation of chained tx packets for host side tx glomming. Reviewed-by: Hante Meuleman <meuleman@broadcom.com> Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Reviewed-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Franky Lin <frankyl@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
		
					parent
					
						
							
								89c2f382ff
							
						
					
				
			
			
				commit
				
					
						b05e92545d
					
				
			
		
					 4 changed files with 183 additions and 78 deletions
				
			
		|  | @ -94,6 +94,10 @@ void __init brcmfmac_init_pdata(void) | |||
|  * Set this to true if the SDIO host controller has higher align requirement | ||||
|  * than 32 bytes for each scatterlist item. | ||||
|  * | ||||
|  * sd_head_align: alignment requirement for start of data buffer | ||||
|  * | ||||
|  * sd_sgentry_align: length alignment requirement for each sg entry | ||||
|  * | ||||
|  * power_on: This function is called by the brcmfmac when the module gets | ||||
|  * loaded. This can be particularly useful for low power devices. The platform | ||||
|  * spcific routine may for example decide to power up the complete device. | ||||
|  | @ -121,6 +125,8 @@ struct brcmfmac_sdio_platform_data { | |||
| 	unsigned int oob_irq_nr; | ||||
| 	unsigned long oob_irq_flags; | ||||
| 	bool broken_sg_support; | ||||
| 	unsigned short sd_head_align; | ||||
| 	unsigned short sd_sgentry_align; | ||||
| 	void (*power_on)(void); | ||||
| 	void (*power_off)(void); | ||||
| 	void (*reset)(void); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Franky Lin
				Franky Lin