if_hatm.c (199970) | if_hatm.c (201758) |
---|---|
1/*- 2 * Copyright (c) 2001-2003 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 19 unchanged lines hidden (view full) --- 28 * 29 * ForeHE driver. 30 * 31 * This file contains the module and driver infrastructure stuff as well 32 * as a couple of utility functions and the entire initialisation. 33 */ 34 35#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001-2003 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 19 unchanged lines hidden (view full) --- 28 * 29 * ForeHE driver. 30 * 31 * This file contains the module and driver infrastructure stuff as well 32 * as a couple of utility functions and the entire initialisation. 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/dev/hatm/if_hatm.c 199970 2009-11-30 18:26:46Z emaste $"); | 36__FBSDID("$FreeBSD: head/sys/dev/hatm/if_hatm.c 201758 2010-01-07 21:01:37Z mbr $"); |
37 38#include "opt_inet.h" 39#include "opt_natm.h" 40 41#include <sys/types.h> 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/malloc.h> --- 786 unchanged lines hidden (view full) --- 831 u_int lbuf_size; /* bytes per lbuf */ 832 u_int lbufs_per_row; /* number of lbufs per memory row */ 833 uint32_t lbufd_index; /* index of lbuf descriptor */ 834 uint32_t lbufd_addr; /* address of lbuf descriptor */ 835 u_int lbuf_row_cnt; /* current lbuf in current row */ 836 uint32_t lbuf_addr; /* address of current buffer */ 837 u_int i; 838 | 37 38#include "opt_inet.h" 39#include "opt_natm.h" 40 41#include <sys/types.h> 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/malloc.h> --- 786 unchanged lines hidden (view full) --- 831 u_int lbuf_size; /* bytes per lbuf */ 832 u_int lbufs_per_row; /* number of lbufs per memory row */ 833 uint32_t lbufd_index; /* index of lbuf descriptor */ 834 uint32_t lbufd_addr; /* address of lbuf descriptor */ 835 u_int lbuf_row_cnt; /* current lbuf in current row */ 836 uint32_t lbuf_addr; /* address of current buffer */ 837 u_int i; 838 |
839 row_size = sc->bytes_per_row;; | 839 row_size = sc->bytes_per_row; |
840 row_addr = start * row_size; 841 lbuf_size = sc->cells_per_lbuf * 48; 842 lbufs_per_row = sc->cells_per_row / sc->cells_per_lbuf; 843 844 /* descriptor index */ 845 lbufd_index = num; 846 847 /* 2 words per entry */ --- 36 unchanged lines hidden (view full) --- 884 u_int lbuf_size; /* bytes per lbuf */ 885 u_int lbufs_per_row; /* number of lbufs per memory row */ 886 uint32_t lbufd_index; /* index of lbuf descriptor */ 887 uint32_t lbufd_addr; /* address of lbuf descriptor */ 888 u_int lbuf_row_cnt; /* current lbuf in current row */ 889 uint32_t lbuf_addr; /* address of current buffer */ 890 u_int i; 891 | 840 row_addr = start * row_size; 841 lbuf_size = sc->cells_per_lbuf * 48; 842 lbufs_per_row = sc->cells_per_row / sc->cells_per_lbuf; 843 844 /* descriptor index */ 845 lbufd_index = num; 846 847 /* 2 words per entry */ --- 36 unchanged lines hidden (view full) --- 884 u_int lbuf_size; /* bytes per lbuf */ 885 u_int lbufs_per_row; /* number of lbufs per memory row */ 886 uint32_t lbufd_index; /* index of lbuf descriptor */ 887 uint32_t lbufd_addr; /* address of lbuf descriptor */ 888 u_int lbuf_row_cnt; /* current lbuf in current row */ 889 uint32_t lbuf_addr; /* address of current buffer */ 890 u_int i; 891 |
892 row_size = sc->bytes_per_row;; | 892 row_size = sc->bytes_per_row; |
893 row_addr = start * row_size; 894 lbuf_size = sc->cells_per_lbuf * 48; 895 lbufs_per_row = sc->cells_per_row / sc->cells_per_lbuf; 896 897 /* descriptor index */ 898 lbufd_index = sc->r0_numbuffs + sc->r1_numbuffs; 899 900 /* 2 words per entry */ --- 1518 unchanged lines hidden --- | 893 row_addr = start * row_size; 894 lbuf_size = sc->cells_per_lbuf * 48; 895 lbufs_per_row = sc->cells_per_row / sc->cells_per_lbuf; 896 897 /* descriptor index */ 898 lbufd_index = sc->r0_numbuffs + sc->r1_numbuffs; 899 900 /* 2 words per entry */ --- 1518 unchanged lines hidden --- |