Changeset b607d9c8 in rtems
- Timestamp:
- 04/26/05 23:03:51 (18 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- a6e2293
- Parents:
- 17a5e1d8
- Location:
- c/src/lib/libbsp/i386/pc386
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/i386/pc386/3c509/3c509.c
r17a5e1d8 rb607d9c8 59 59 * MODIFICATION/HISTORY: 60 60 * $Log$ 61 * Revision 1.5 2004/07/25 14:21:43 joel 62 * 2004-07-25 Joel Sherrill <joel@OARcorp.com> 63 * 64 * * 3c509/3c509.c: Add <sys/errno.h>. 65 * * startup/linkcmds: Add .jcr section. 66 * 61 67 * Revision 1.4 2004/04/21 16:01:33 ralf 62 68 * Remove duplicate white lines. … … 243 249 * 244 250 **********************************************************************************/ 245 static __inline void outsl( unsigned short io_addr, u nsigned char*out_data, int len )251 static __inline void outsl( unsigned short io_addr, uint8_t *out_data, int len ) 246 252 { 247 253 u_long *pl = ( u_long *)out_data; … … 261 267 * 262 268 **********************************************************************************/ 263 static __inline void outsw( unsigned short io_addr, u nsigned char*out_data, int len )269 static __inline void outsw( unsigned short io_addr, uint8_t *out_data, int len ) 264 270 { 265 271 u_short *ps = ( u_short *)out_data; … … 279 285 * 280 286 **********************************************************************************/ 281 static __inline void outsb( unsigned short io_addr, u nsigned char*out_data, int len )287 static __inline void outsb( unsigned short io_addr, uint8_t *out_data, int len ) 282 288 { 283 289 while( len-- ) … … 296 302 * 297 303 **********************************************************************************/ 298 static __inline void insw( unsigned short io_addr, u nsigned char*in_data, int len )304 static __inline void insw( unsigned short io_addr, uint8_t *in_data, int len ) 299 305 { 300 306 u_short *ps = ( u_short *)in_data; … … 314 320 * 315 321 **********************************************************************************/ 316 static __inline void insl( unsigned short io_addr, u nsigned char*in_data, int len )322 static __inline void insl( unsigned short io_addr, uint8_t *in_data, int len ) 317 323 { 318 324 u_long *pl = ( u_long *)in_data; … … 332 338 * 333 339 **********************************************************************************/ 334 static __inline void insb( unsigned short io_addr, u nsigned char*in_data, int len )340 static __inline void insb( unsigned short io_addr, uint8_t *in_data, int len ) 335 341 { 336 342 while( len-- ) … … 376 382 * 377 383 **********************************************************************************/ 378 void __inline outb( unsigned short io_addr, u nsigned charout_data )384 void __inline outb( unsigned short io_addr, uint8_t out_data ) 379 385 { 380 386 outport_byte( io_addr, out_data ); … … 388 394 * 389 395 **********************************************************************************/ 390 static __inline u nsigned charinb( unsigned short io_addr )391 { 392 u nsigned charin_data;396 static __inline uint8_t inb( unsigned short io_addr ) 397 { 398 uint8_t in_data; 393 399 inport_byte( io_addr, in_data ); 394 400 return in_data; … … 1330 1336 if( ep_ftst(F_ACCESS_32_BITS ) ) 1331 1337 { 1332 outsl( BASE + EP_W1_TX_PIO_WR_1, mtod(m, caddr_t), m->m_len / 4 );1338 outsl( BASE + EP_W1_TX_PIO_WR_1, mtod(m, uint8_t *), m->m_len / 4 ); 1333 1339 if( m->m_len & 3 ) 1334 outsb(BASE + EP_W1_TX_PIO_WR_1, mtod(m, caddr_t) + (m->m_len & (~3)), m->m_len & 3 );1340 outsb(BASE + EP_W1_TX_PIO_WR_1, mtod(m, uint8_t *) + (m->m_len & (~3)), m->m_len & 3 ); 1335 1341 } 1336 1342 else 1337 1343 { 1338 outsw( BASE + EP_W1_TX_PIO_WR_1, mtod(m, caddr_t), m->m_len / 2 );1344 outsw( BASE + EP_W1_TX_PIO_WR_1, mtod(m, uint8_t *), m->m_len / 2 ); 1339 1345 if( m->m_len & 1 ) 1340 outb( BASE + EP_W1_TX_PIO_WR_1, *(mtod(m, caddr_t) + m->m_len - 1) );1346 outb( BASE + EP_W1_TX_PIO_WR_1, *(mtod(m, uint8_t *) + m->m_len - 1) ); 1341 1347 } 1342 1348 } … … 1424 1430 1425 1431 /* Read what should be the header. */ 1426 insw(BASE + EP_W1_RX_PIO_RD_1, mtod(top, caddr_t), sizeof(struct ether_header) / 2);1432 insw(BASE + EP_W1_RX_PIO_RD_1, mtod(top, uint8_t *), sizeof(struct ether_header) / 2); 1427 1433 top->m_len = sizeof(struct ether_header); 1428 1434 rx_fifo -= sizeof(struct ether_header); … … 1455 1461 if( ep_ftst( F_ACCESS_32_BITS ) ) 1456 1462 { /* default for EISA configured cards*/ 1457 insl( BASE + EP_W1_RX_PIO_RD_1, mtod(m, caddr_t) + m->m_len, lenthisone / 4);1463 insl( BASE + EP_W1_RX_PIO_RD_1, mtod(m, uint8_t *) + m->m_len, lenthisone / 4); 1458 1464 m->m_len += (lenthisone & ~3); 1459 1465 if (lenthisone & 3) 1460 insb(BASE + EP_W1_RX_PIO_RD_1, mtod(m, caddr_t) + m->m_len, lenthisone & 3);1466 insb(BASE + EP_W1_RX_PIO_RD_1, mtod(m, uint8_t *) + m->m_len, lenthisone & 3); 1461 1467 m->m_len += (lenthisone & 3); 1462 1468 } 1463 1469 else 1464 1470 { 1465 insw(BASE + EP_W1_RX_PIO_RD_1, mtod(m, caddr_t) + m->m_len, lenthisone / 2);1471 insw(BASE + EP_W1_RX_PIO_RD_1, mtod(m, uint8_t *) + m->m_len, lenthisone / 2); 1466 1472 m->m_len += lenthisone; 1467 1473 if( lenthisone & 1 ) 1468 *(mtod(m, caddr_t) + m->m_len - 1) = inb(BASE + EP_W1_RX_PIO_RD_1);1474 *(mtod(m, uint8_t *) + m->m_len - 1) = inb(BASE + EP_W1_RX_PIO_RD_1); 1469 1475 } 1470 1476 rx_fifo -= lenthisone; -
c/src/lib/libbsp/i386/pc386/ChangeLog
r17a5e1d8 rb607d9c8 1 2005-04-26 Joel Sherrill <joel@OARcorp.com> 2 3 * 3c509/3c509.c, wd8003/wd8003.c: Eliminate warnings. 4 1 5 2005-04-18 Eric Valette <eric.valette@free.fr> 2 6 -
c/src/lib/libbsp/i386/pc386/wd8003/wd8003.c
r17a5e1d8 rb607d9c8 324 324 m->m_pkthdr.rcvif = ifp; 325 325 326 temp = m->m_data;326 temp = (unsigned char *) m->m_data; 327 327 m->m_len = m->m_pkthdr.len = len - sizeof(struct ether_header); 328 328 … … 364 364 struct mbuf *n; 365 365 unsigned int len, tport; 366 char*shp, txReady;366 uint8_t *shp, txReady; 367 367 368 368 tport = dp->port;
Note: See TracChangeset
for help on using the changeset viewer.