Cleanup some constants in src/common.h

This commit is contained in:
Christophe Grenier 2012-06-09 16:05:53 +02:00
parent acea8bc334
commit ef2eb01d13
2 changed files with 3 additions and 5 deletions

View file

@ -36,11 +36,7 @@ struct efi_guid_s
uint8_t node[6];
} __attribute__ ((__packed__));
#define DEFAULT_SECTOR_SIZE 0x200
#define MAX_CYLINDERS 65535
#define MAX_HEADS 255
#define MAX_SECTORS 63
#define DEFAULT_SECTOR_SIZE 0x200u
#define DISKNAME_MAX 64
#define DISKDESCRIPTION_MAX 128

View file

@ -41,6 +41,8 @@
#include "geometry.h"
#include "autoset.h"
#define MAX_HEADS 255u
static inline void set_cylinders_from_size_up(disk_t *disk_car)
{
disk_car->geom.cylinders=(disk_car->disk_size / disk_car->sector_size +