mmc.c (184033) | mmc.c (184452) |
---|---|
1/*- 2 * Copyright (c) 2006 Bernd Walter. All rights reserved. 3 * Copyright (c) 2006 M. Warner Losh. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 37 unchanged lines hidden (view full) --- 46 * implication, estoppel or otherwise under any patent or other rights of the 47 * SD Group, SD-3C LLC, the SD Card Association or any third party. Nothing 48 * herein shall be construed as an obligation by the SD Group, the SD-3C LLC 49 * or the SD Card Association to disclose or distribute any technical 50 * information, know-how or other confidential information to any third party. 51 */ 52 53#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2006 Bernd Walter. All rights reserved. 3 * Copyright (c) 2006 M. Warner Losh. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 37 unchanged lines hidden (view full) --- 46 * implication, estoppel or otherwise under any patent or other rights of the 47 * SD Group, SD-3C LLC, the SD Card Association or any third party. Nothing 48 * herein shall be construed as an obligation by the SD Group, the SD-3C LLC 49 * or the SD Card Association to disclose or distribute any technical 50 * information, know-how or other confidential information to any third party. 51 */ 52 53#include <sys/cdefs.h> |
54__FBSDID("$FreeBSD: head/sys/dev/mmc/mmc.c 184033 2008-10-18 16:17:04Z mav $"); | 54__FBSDID("$FreeBSD: head/sys/dev/mmc/mmc.c 184452 2008-10-29 20:01:26Z mav $"); |
55 56#include <sys/param.h> 57#include <sys/systm.h> 58#include <sys/kernel.h> 59#include <sys/malloc.h> 60#include <sys/lock.h> 61#include <sys/module.h> 62#include <sys/mutex.h> --- 1275 unchanged lines hidden (view full) --- 1338 *(int *)result = ivar->mode; 1339 break; 1340 case MMC_IVAR_BUS_WIDTH: 1341 *(int *)result = ivar->bus_width; 1342 break; 1343 case MMC_IVAR_ERASE_SECTOR: 1344 *(int *)result = ivar->erase_sector; 1345 break; | 55 56#include <sys/param.h> 57#include <sys/systm.h> 58#include <sys/kernel.h> 59#include <sys/malloc.h> 60#include <sys/lock.h> 61#include <sys/module.h> 62#include <sys/mutex.h> --- 1275 unchanged lines hidden (view full) --- 1338 *(int *)result = ivar->mode; 1339 break; 1340 case MMC_IVAR_BUS_WIDTH: 1341 *(int *)result = ivar->bus_width; 1342 break; 1343 case MMC_IVAR_ERASE_SECTOR: 1344 *(int *)result = ivar->erase_sector; 1345 break; |
1346 case MMC_IVAR_MAX_DATA: 1347 *(int *)result = mmcbr_get_max_data(bus); 1348 break; |
|
1346 } 1347 return (0); 1348} 1349 1350static int 1351mmc_write_ivar(device_t bus, device_t child, int which, uintptr_t value) 1352{ 1353 /* --- 43 unchanged lines hidden --- | 1349 } 1350 return (0); 1351} 1352 1353static int 1354mmc_write_ivar(device_t bus, device_t child, int which, uintptr_t value) 1355{ 1356 /* --- 43 unchanged lines hidden --- |