Permalink
Browse files

import pdisk utility from Eryk Vershen:

  http://cantaforda.com/cfcl/eryk/linux/pdisk/index.html
this is the utility provided by mklinux and osX to manipulate
the Apple Partition map.
  • Loading branch information...
1 parent a2bca40 commit 0885043f1cde5fa0e76212e919ea98b5eb52690f dbj committed Jul 9, 2002
Showing with 13,275 additions and 0 deletions.
  1. +1,239 −0 dist/pdisk/ATA_media.c
  2. +64 −0 dist/pdisk/ATA_media.h
  3. +649 −0 dist/pdisk/DoSCSICommand.c
  4. +130 −0 dist/pdisk/DoSCSICommand.h
  5. +68 −0 dist/pdisk/HISTORY
  6. +420 −0 dist/pdisk/MacSCSICommand.h
  7. +147 −0 dist/pdisk/README
  8. +1,108 −0 dist/pdisk/SCSI_media.c
  9. +65 −0 dist/pdisk/SCSI_media.h
  10. +101 −0 dist/pdisk/bitfield.c
  11. +72 −0 dist/pdisk/bitfield.h
  12. +204 −0 dist/pdisk/convert.c
  13. +65 −0 dist/pdisk/convert.h
  14. +208 −0 dist/pdisk/cvt_pt.c
  15. +334 −0 dist/pdisk/deblock_media.c
  16. +59 −0 dist/pdisk/deblock_media.h
  17. +219 −0 dist/pdisk/dpme.h
  18. +917 −0 dist/pdisk/dump.c
  19. +72 −0 dist/pdisk/dump.h
  20. +173 −0 dist/pdisk/errors.c
  21. +62 −0 dist/pdisk/errors.h
  22. +574 −0 dist/pdisk/file_media.c
  23. +60 −0 dist/pdisk/file_media.h
  24. +253 −0 dist/pdisk/hfs_misc.c
  25. +41 −0 dist/pdisk/hfs_misc.h
  26. +463 −0 dist/pdisk/io.c
  27. +67 −0 dist/pdisk/io.h
  28. +180 −0 dist/pdisk/layout_dump.c
  29. +78 −0 dist/pdisk/layout_dump.h
  30. +212 −0 dist/pdisk/makefile
  31. +228 −0 dist/pdisk/media.c
  32. +139 −0 dist/pdisk/media.h
  33. +1,319 −0 dist/pdisk/partition_map.c
  34. +119 −0 dist/pdisk/partition_map.h
  35. +247 −0 dist/pdisk/pathname.c
  36. +62 −0 dist/pdisk/pathname.h
  37. +222 −0 dist/pdisk/pdisk.8
  38. +1,072 −0 dist/pdisk/pdisk.c
  39. +57 −0 dist/pdisk/pdisk.h
  40. +406 −0 dist/pdisk/pdisk.html
  41. +234 −0 dist/pdisk/pdisk.r
  42. +164 −0 dist/pdisk/util.c
  43. +62 −0 dist/pdisk/util.h
  44. +499 −0 dist/pdisk/validate.c
  45. +59 −0 dist/pdisk/validate.h
  46. +82 −0 dist/pdisk/version.h
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,64 @@
+/*
+ * ATA_media.h -
+ *
+ * Written by Eryk Vershen
+ */
+
+/*
+ * Copyright 1997,1998 by Apple Computer, Inc.
+ * All Rights Reserved
+ *
+ * Permission to use, copy, modify, and distribute this software and
+ * its documentation for any purpose and without fee is hereby granted,
+ * provided that the above copyright notice appears in all copies and
+ * that both the copyright notice and this permission notice appear in
+ * supporting documentation.
+ *
+ * APPLE COMPUTER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE.
+ *
+ * IN NO EVENT SHALL APPLE COMPUTER BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
+ * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef __ATA_media__
+#define __ATA_media__
+
+#include "media.h"
+
+
+/*
+ * Defines
+ */
+
+
+/*
+ * Types
+ */
+
+
+/*
+ * Global Constants
+ */
+
+
+/*
+ * Global Variables
+ */
+
+
+/*
+ * Forward declarations
+ */
+MEDIA ATA_FindDevice(long dRefNum);
+MEDIA open_ata_as_media(long bus, long device);
+MEDIA open_atapi_as_media(long bus, long device);
+MEDIA_ITERATOR create_ata_iterator(void);
+MEDIA open_linux_ata_as_media(long index);
+char *linux_ata_name(long bus, long id);
+
+#endif /* __ATA_media__ */
Oops, something went wrong.

0 comments on commit 0885043

Please sign in to comment.