Changeset 635 for trunk/hal/tsar_mips32/drivers/soclib_nic.c
- Timestamp:
- Jun 26, 2019, 11:42:37 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/drivers/soclib_nic.c
r570 r635 2 2 * soclib_nic.c - SOCLIB_NIC (Network Interface Controler) driver implementation. 3 3 * 4 * Author Alain Greiner (2016 )4 * Author Alain Greiner (2016,2017,2018,2019) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 55 55 "chbuf descriptor exceeds one page" ); 56 56 57 req.type = KMEM_P AGE;58 req. size= 0;57 req.type = KMEM_PPM; 58 req.order = 0; 59 59 req.flags = AF_KERNEL; 60 60 61 nic_chbuf_t * chbuf = (nic_chbuf_t *)kmem_alloc( &req ); 62 63 assert( (chbuf != NULL) , 64 "cannot allocate chbuf descriptor" ); 61 nic_chbuf_t * chbuf = kmem_alloc( &req ); 62 63 if( chbuf == NULL ) 64 { 65 printk("\n[PANIC] in %s : cannot allocate chbuf descriptor\n", 66 __FUNCTION__ ); 67 } 65 68 66 69 // initialise chbuf state … … 76 79 for( i = 0 ; i < CONFIG_NIC_CHBUF_DEPTH ; i++ ) 77 80 { 78 uint32_t * container = (uint32_t *)kmem_alloc( &req );81 uint32_t * container = kmem_alloc( &req ); 79 82 80 83 assert( (container != NULL) ,
Note: See TracChangeset
for help on using the changeset viewer.